public class JeeJoynrServiceLocator extends Object implements ServiceLocator
UsedBy annotation
is attached in the class hierarchy of the service interface. With this annotation, the proxy is found by
the JeeJoynrServiceLocator.| Modifier and Type | Class and Description |
|---|---|
class |
JeeJoynrServiceLocator.JeeJoynrServiceProxyBuilder<T> |
ServiceLocator.ServiceProxyBuilder<T>| Constructor and Description |
|---|
JeeJoynrServiceLocator(JoynrIntegrationBean joynrIntegrationBean) |
| 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
ServiceLocator.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
ServiceLocator.get(Class, String), but allows you to specify the messaging and discovery quality of service
information to use. |
@Inject public JeeJoynrServiceLocator(JoynrIntegrationBean joynrIntegrationBean)
public <I> I get(Class<I> serviceInterface, String domain)
ServiceLocatorServiceLocator.get(Class, String, MessagingQos, DiscoveryQos) with default values for messaging and discovery quality
of service.get in interface ServiceLocatorI - the service typeserviceInterface - the service interface for which to get a client proxy.domain - the domain in which the service implementation must be available.public <I> I get(Class<I> serviceInterface, String domain, long ttl)
ServiceLocatorServiceLocator.get(Class, String), but allows you to specify the maximum time-to-live for messages sent to the
service. Calls ServiceLocator.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.get in interface ServiceLocatorI - 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.public <I> I get(Class<I> serviceInterface, Set<String> domains)
ServiceLocator#get(Class, Set, MessagingQos, DiscoveryQos) with default values for messaging and discovery quality
of service.get in interface ServiceLocatorI - 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.public <I> I get(Class<I> serviceInterface, Set<String> domains, long ttl)
ServiceLocator#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.get in interface ServiceLocatorI - 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.public <I> I get(Class<I> serviceInterface, String domain, io.joynr.messaging.MessagingQos messagingQos, io.joynr.arbitration.DiscoveryQos discoveryQos)
ServiceLocatorServiceLocator.get(Class, String), but allows you to specify the messaging and discovery quality of service
information to use.get in interface ServiceLocatorI - 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.public <I> I get(Class<I> serviceInterface, Set<String> domains, io.joynr.messaging.MessagingQos messagingQos, io.joynr.arbitration.DiscoveryQos discoveryQos)
ServiceLocator#get(Class, Set) , but allows you to specify the messaging and discovery quality of service
information to use.get in interface ServiceLocatorI - 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.public <I> I get(Class<I> serviceInterface, Set<String> domains, io.joynr.messaging.MessagingQos messagingQos, io.joynr.arbitration.DiscoveryQos discoveryQos, String useCase)
ServiceLocator#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.get in interface ServiceLocatorI - 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.public <I> ServiceLocator.ServiceProxyBuilder<I> builder(Class<I> serviceInterface, String... domains)
ServiceLocatorServiceLocator.ServiceProxyBuilder for the given service interface and domains.builder in interface ServiceLocatorI - 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.