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