public interface Subscription
ClusterEventService subscription context.
The subscription represents a node's subscription to a specific topic. A Subscription instance is returned
once an ClusterEventService subscription has been propagated. The subscription context can be used to
unsubscribe the node from the given topic() by calling close().
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
close()
Closes the subscription, causing it to be unregistered.
|
java.lang.String |
topic()
Returns the subscription topic.
|
java.lang.String topic()
java.util.concurrent.CompletableFuture<java.lang.Void> close()
When the subscription is closed, the subscriber will be unregistered and the change will be propagated to all the members of the cluster. The returned future will be completed once the change has been propagated to all nodes.
Copyright © 2013-2018. All Rights Reserved.