| Package | Description |
|---|---|
| org.onosproject.store.cluster.messaging |
Cluster messaging APIs for the use by the various distributed stores.
|
| Modifier and Type | Method and Description |
|---|---|
MessageSubject |
ClusterMessage.subject()
Returns the message subject indicator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClusterCommunicationService.addSubscriber(MessageSubject subject,
ClusterMessageHandler subscriber,
ExecutorService executor)
Deprecated.
in Cardinal Release
|
<M> void |
ClusterCommunicationService.addSubscriber(MessageSubject subject,
java.util.function.Function<byte[],M> decoder,
java.util.function.Consumer<M> handler,
Executor executor)
Adds a new subscriber for the specified message subject.
|
<M,R> void |
ClusterCommunicationService.addSubscriber(MessageSubject subject,
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 subject.
|
<M,R> void |
ClusterCommunicationService.addSubscriber(MessageSubject subject,
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 subject.
|
<M> void |
ClusterCommunicationService.broadcast(M message,
MessageSubject subject,
java.util.function.Function<M,byte[]> encoder)
Broadcasts a message to all controller nodes.
|
<M> void |
ClusterCommunicationService.broadcastIncludeSelf(M message,
MessageSubject subject,
java.util.function.Function<M,byte[]> encoder)
Broadcasts a message to all controller nodes including self.
|
<M> void |
ClusterCommunicationService.multicast(M message,
MessageSubject subject,
java.util.function.Function<M,byte[]> encoder,
Set<NodeId> nodeIds)
Multicasts a message to a set of controller nodes.
|
void |
ClusterCommunicationService.removeSubscriber(MessageSubject subject)
Removes a subscriber for the specified message subject.
|
<M,R> CompletableFuture<R> |
ClusterCommunicationService.sendAndReceive(M message,
MessageSubject subject,
java.util.function.Function<M,byte[]> encoder,
java.util.function.Function<byte[],R> decoder,
NodeId toNodeId)
Sends a message and expects a reply.
|
<M> CompletableFuture<Void> |
ClusterCommunicationService.unicast(M message,
MessageSubject subject,
java.util.function.Function<M,byte[]> encoder,
NodeId toNodeId)
Sends a message to the specified controller node.
|
| Constructor and Description |
|---|
ClusterMessage(NodeId sender,
MessageSubject subject,
byte[] payload)
Creates a cluster message.
|
Copyright © 2015. All rights reserved.