public interface ServiceLocator
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ServiceLocator.ServiceProxyBuilder<T>
Builder allowing you to set the various properties necessary for constructing a service proxy.
|
| Modifier and Type | Method and Description |
|---|---|
<I> ServiceLocator.ServiceProxyBuilder<I> |
builder(Class<I> serviceInterface,
String... domains)
Create a
ServiceLocator.ServiceProxyBuilder for the given service interface and domains. |
<I> I |
get(Class<I> serviceInterface,
Set<String> domains)
Obtains a client proxy for multiple services of the given service interface in the given domains.
|
<I> I |
get(Class<I> serviceInterface,
Set<String> domains,
long ttl)
Like
#get(Class, Set, but allows you to specify the maximum time-to-live for messages sent to the
services. |
<I> I |
get(Class<I> serviceInterface,
Set<String> domains,
io.joynr.messaging.MessagingQos messagingQos,
io.joynr.arbitration.DiscoveryQos discoveryQos)
Like
#get(Class, Set, but allows you to specify the messaging and discovery quality of service
information to use. |
<I> I |
get(Class<I> serviceInterface,
Set<String> domains,
io.joynr.messaging.MessagingQos messagingQos,
io.joynr.arbitration.DiscoveryQos discoveryQos,
String useCase)
Like
#get(Class, Set, but allows you to specify the messaging and discovery quality of service
information to use, as well as the stateless async use case in order to identify the CallbackHandler
bean to use for processing stateless async replies received for requests made from this proxy. |
<I> I |
get(Class<I> serviceInterface,
String domain)
Obtains a client proxy for the given service interface in the given domain.
|
<I> I |
get(Class<I> serviceInterface,
String domain,
long ttl)
Like
get(Class, String), but allows you to specify the maximum time-to-live for messages sent to the
service. |
<I> I |
get(Class<I> serviceInterface,
String domain,
io.joynr.messaging.MessagingQos messagingQos,
io.joynr.arbitration.DiscoveryQos discoveryQos)
Like
get(Class, String), but allows you to specify the messaging and discovery quality of service
information to use. |
<I> I get(Class<I> serviceInterface, String domain)
get(Class, String, MessagingQos, DiscoveryQos) with default values for messaging and discovery quality
of service.I - the service typeserviceInterface - the service interface for which to get a client proxy.domain - the domain in which the service implementation must be available.<I> I get(Class<I> serviceInterface, String domain, long ttl)
get(Class, String), but allows you to specify the maximum time-to-live for messages sent to the
service. Calls get(Class, String, MessagingQos, DiscoveryQos), setting the TTL passed in on the
messaging quality of service and providing default values for the discovery quality of service.I - the service typeserviceInterface - the service interface for which to get a client proxy.domain - the domain in which the service implementation must be available.ttl - the maximum time to live for messages sent via the service. If the time to live expires (the message
takes longer to deliver), then an exception is thrown.<I> I get(Class<I> serviceInterface, String domain, io.joynr.messaging.MessagingQos messagingQos, io.joynr.arbitration.DiscoveryQos discoveryQos)
get(Class, String), but allows you to specify the messaging and discovery quality of service
information to use.I - the service typeserviceInterface - the service interface for which to get a client proxy.domain - the domain in which the service implementation must be available.messagingQos - the messaging quality of service information (including the time to live value) to use when
communicating to the service.discoveryQos - the discovery quality of service information to use when communicating to the service.<I> I get(Class<I> serviceInterface, Set<String> domains)
#get(Class, Set, MessagingQos, DiscoveryQos) with default values for messaging and discovery quality
of service.I - the service typeserviceInterface - the BCI interface for which to get a client proxy.domains - the set of domains in which the service implementations must be available.<I> I get(Class<I> serviceInterface, Set<String> domains, long ttl)
#get(Class, Set) , but allows you to specify the maximum time-to-live for messages sent to the
services. Calls #get(Class, Set, MessagingQos, DiscoveryQos) , setting the TTL passed in on the
messaging quality of service and providing default values for the discovery quality of service.I - the service typeserviceInterface - the BCI interface for which to get a client proxy.domains - the set of domains in which the service implementations must be available.ttl - the maximum time to live for messages sent via the service. If the time to live expires (the message
takes longer to deliver), then an exception is thrown.<I> I get(Class<I> serviceInterface, Set<String> domains, io.joynr.messaging.MessagingQos messagingQos, io.joynr.arbitration.DiscoveryQos discoveryQos)
#get(Class, Set) , but allows you to specify the messaging and discovery quality of service
information to use.I - the service typeserviceInterface - the BCI interface for which to get a client proxy.domains - the set of domains in which the service implementations must be available.messagingQos - the messaging quality of service information (including the time to live value) to use when
communicating to the service.discoveryQos - the discovery quality of service information to use when communicating to the service.<I> I get(Class<I> serviceInterface, Set<String> domains, io.joynr.messaging.MessagingQos messagingQos, io.joynr.arbitration.DiscoveryQos discoveryQos, String useCase)
#get(Class, Set) , but allows you to specify the messaging and discovery quality of service
information to use, as well as the stateless async use case in order to identify the CallbackHandler
bean to use for processing stateless async replies received for requests made from this proxy.I - the service typeserviceInterface - the BCI interface for which to get a client proxy.domains - the set of domains in which the service implementations must be available.messagingQos - the messaging quality of service information (including the time to live value) to use when
communicating to the service.discoveryQos - the discovery quality of service information to use when communicating to the service.useCase - the name of the use case for identifying the relevant CallbackHandler bean to use for
processing stateless async replies received for requests made from this proxy.<I> ServiceLocator.ServiceProxyBuilder<I> builder(Class<I> serviceInterface, String... domains)
ServiceLocator.ServiceProxyBuilder for the given service interface and domains.I - the type of the service interface for which a service proxy builder should be created.serviceInterface - the service interface for which to create the service proxy builder.domains - the list of domains which the proxy will use for looking up the services to communicate with. At least one domain must be provided.ServiceLocator.ServiceProxyBuilder which can be used to setup the configuration with which to build the service proxy.Copyright © 2019. All rights reserved.