public class HttpBridgeEndpointRegistryClient extends Object implements HttpBridgeRegistryClient
HttpBridgeRegistryClient implementation which communicates with an Endpoint Registration service in
order to register this applications channel (mqtt topic) against the configured application URL.joynr.jeeintegration.endpointregistry.uri.
The registration is performed asynchronously and will also perform up to 10 retries if the registration service can't
be reached.| Modifier and Type | Class and Description |
|---|---|
static class |
HttpBridgeEndpointRegistryClient.EndpointRegistryUriHolder |
| Constructor and Description |
|---|
HttpBridgeEndpointRegistryClient(org.apache.http.client.HttpClient httpClient,
HttpBridgeEndpointRegistryClient.EndpointRegistryUriHolder endpointRegistryUriHolder,
ScheduledExecutorService scheduledExecutorService) |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
register(String endpointUrl,
String channelId)
Registers the given endpoint URL as the recipient for messages received in the broker at the given topic.
|
@Inject
public HttpBridgeEndpointRegistryClient(org.apache.http.client.HttpClient httpClient,
HttpBridgeEndpointRegistryClient.EndpointRegistryUriHolder endpointRegistryUriHolder,
ScheduledExecutorService scheduledExecutorService)
public CompletionStage<Void> register(String endpointUrl, String channelId)
HttpBridgeRegistryClientImplementations should prefer to perform the registration asynchronously and provide a completion stage as result, which can be used by the caller to specify any actions which need to be taken upon completion (successfully or otherwise) of the registration.
register in interface HttpBridgeRegistryClientendpointUrl - the endpoint URL to forward messages to.channelId - the channel ID which will be used to calculate the topic forCopyright © 2019. All rights reserved.