public interface PrimaryBackupClientProtocol
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<CloseResponse> |
close(io.atomix.cluster.NodeId nodeId,
CloseRequest request)
Sends a close request to the given node.
|
CompletableFuture<ExecuteResponse> |
execute(io.atomix.cluster.NodeId nodeId,
ExecuteRequest request)
Sends an execute request to the given node.
|
CompletableFuture<MetadataResponse> |
metadata(io.atomix.cluster.NodeId nodeId,
MetadataRequest request)
Sends a metadata request to the given node.
|
void |
registerEventListener(io.atomix.primitive.session.SessionId sessionId,
Consumer<io.atomix.primitive.event.PrimitiveEvent> listener,
Executor executor)
Registers a publish request listener.
|
void |
unregisterEventListener(io.atomix.primitive.session.SessionId sessionId)
Unregisters the publish request listener for the given session.
|
CompletableFuture<ExecuteResponse> execute(io.atomix.cluster.NodeId nodeId, ExecuteRequest request)
nodeId - the node to which to send the requestrequest - the request to sendCompletableFuture<MetadataResponse> metadata(io.atomix.cluster.NodeId nodeId, MetadataRequest request)
nodeId - the node to which to send the requestrequest - the request to sendCompletableFuture<CloseResponse> close(io.atomix.cluster.NodeId nodeId, CloseRequest request)
nodeId - the node to which to send the requestrequest - the request to sendvoid registerEventListener(io.atomix.primitive.session.SessionId sessionId,
Consumer<io.atomix.primitive.event.PrimitiveEvent> listener,
Executor executor)
sessionId - the session for which to listen for the publish requestlistener - the listener to registerexecutor - the executor with which to execute the listener callbackvoid unregisterEventListener(io.atomix.primitive.session.SessionId sessionId)
sessionId - the session for which to unregister the listenerCopyright © 2013–2018. All rights reserved.