Uses of Interface
io.atomix.cluster.messaging.Subscription
| Package | Description |
|---|---|
| io.atomix.cluster.messaging |
Provides high-level interfaces for direct and publish-subscribe inter-cluster communication.
|
-
Uses of Subscription in io.atomix.cluster.messaging
Methods in io.atomix.cluster.messaging that return types with arguments of type Subscription Modifier and Type Method Description List<Subscription>ClusterEventService. getSubscriptions(String topic)Returns a list of subscriptions for the given topic.default <M> CompletableFuture<Subscription>ClusterEventService. subscribe(String topic, java.util.function.Consumer<M> handler, Executor executor)Adds a new subscriber for the specified message topic.<M> CompletableFuture<Subscription>ClusterEventService. subscribe(String topic, java.util.function.Function<byte[],M> decoder, java.util.function.Consumer<M> handler, Executor executor)Adds a new subscriber for the specified message topic.<M, R> CompletableFuture<Subscription>ClusterEventService. subscribe(String topic, java.util.function.Function<byte[],M> decoder, java.util.function.Function<M,CompletableFuture<R>> handler, java.util.function.Function<R,byte[]> encoder)Adds a new subscriber for the specified message topic.<M, R> CompletableFuture<Subscription>ClusterEventService. subscribe(String topic, java.util.function.Function<byte[],M> decoder, java.util.function.Function<M,R> handler, java.util.function.Function<R,byte[]> encoder, Executor executor)Adds a new subscriber for the specified message topic.default <M, R> CompletableFuture<Subscription>ClusterEventService. subscribe(String topic, java.util.function.Function<M,CompletableFuture<R>> handler)Adds a new subscriber for the specified message topic.default <M, R> CompletableFuture<Subscription>ClusterEventService. subscribe(String topic, java.util.function.Function<M,R> handler, Executor executor)Adds a new subscriber for the specified message topic.