| Package | Description |
|---|---|
| io.atomix.cluster.messaging |
Provides high-level interfaces for direct and publish-subscribe inter-cluster communication.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Subscription> |
ClusterEventService.getSubscriptions(java.lang.String topic)
Returns a list of subscriptions for the given topic.
|
default <M> java.util.concurrent.CompletableFuture<Subscription> |
ClusterEventService.subscribe(java.lang.String topic,
java.util.function.Consumer<M> handler,
java.util.concurrent.Executor executor)
Adds a new subscriber for the specified message topic.
|
<M> java.util.concurrent.CompletableFuture<Subscription> |
ClusterEventService.subscribe(java.lang.String topic,
java.util.function.Function<byte[],M> decoder,
java.util.function.Consumer<M> handler,
java.util.concurrent.Executor executor)
Adds a new subscriber for the specified message topic.
|
<M,R> java.util.concurrent.CompletableFuture<Subscription> |
ClusterEventService.subscribe(java.lang.String topic,
java.util.function.Function<byte[],M> decoder,
java.util.function.Function<M,java.util.concurrent.CompletableFuture<R>> handler,
java.util.function.Function<R,byte[]> encoder)
Adds a new subscriber for the specified message topic.
|
<M,R> java.util.concurrent.CompletableFuture<Subscription> |
ClusterEventService.subscribe(java.lang.String topic,
java.util.function.Function<byte[],M> decoder,
java.util.function.Function<M,R> handler,
java.util.function.Function<R,byte[]> encoder,
java.util.concurrent.Executor executor)
Adds a new subscriber for the specified message topic.
|
default <M,R> java.util.concurrent.CompletableFuture<Subscription> |
ClusterEventService.subscribe(java.lang.String topic,
java.util.function.Function<M,java.util.concurrent.CompletableFuture<R>> handler)
Adds a new subscriber for the specified message topic.
|
default <M,R> java.util.concurrent.CompletableFuture<Subscription> |
ClusterEventService.subscribe(java.lang.String topic,
java.util.function.Function<M,R> handler,
java.util.concurrent.Executor executor)
Adds a new subscriber for the specified message topic.
|
Copyright © 2013-2019. All Rights Reserved.