public interface RaftClientProtocol
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<CloseSessionResponse> |
closeSession(io.atomix.cluster.NodeId nodeId,
CloseSessionRequest request)
Sends a close session request to the given node.
|
CompletableFuture<CommandResponse> |
command(io.atomix.cluster.NodeId nodeId,
CommandRequest request)
Sends a command request to the given node.
|
CompletableFuture<KeepAliveResponse> |
keepAlive(io.atomix.cluster.NodeId nodeId,
KeepAliveRequest request)
Sends a keep alive request to the given node.
|
CompletableFuture<MetadataResponse> |
metadata(io.atomix.cluster.NodeId nodeId,
MetadataRequest request)
Sends a metadata request to the given node.
|
CompletableFuture<OpenSessionResponse> |
openSession(io.atomix.cluster.NodeId nodeId,
OpenSessionRequest request)
Sends an open session request to the given node.
|
CompletableFuture<QueryResponse> |
query(io.atomix.cluster.NodeId nodeId,
QueryRequest request)
Sends a query request to the given node.
|
void |
registerHeartbeatHandler(Function<HeartbeatRequest,CompletableFuture<HeartbeatResponse>> handler)
Registers a heartbeat request callback.
|
void |
registerPublishListener(io.atomix.primitive.session.SessionId sessionId,
Consumer<PublishRequest> listener,
Executor executor)
Registers a publish request listener.
|
void |
reset(Set<io.atomix.cluster.NodeId> members,
ResetRequest request)
Multicasts a reset request to all nodes in the cluster.
|
void |
unregisterHeartbeatHandler()
Unregisters the heartbeat request handler.
|
void |
unregisterPublishListener(io.atomix.primitive.session.SessionId sessionId)
Unregisters the publish request listener for the given session.
|
CompletableFuture<OpenSessionResponse> openSession(io.atomix.cluster.NodeId nodeId, OpenSessionRequest request)
nodeId - the node to which to send the requestrequest - the request to sendCompletableFuture<CloseSessionResponse> closeSession(io.atomix.cluster.NodeId nodeId, CloseSessionRequest request)
nodeId - the node to which to send the requestrequest - the request to sendCompletableFuture<KeepAliveResponse> keepAlive(io.atomix.cluster.NodeId nodeId, KeepAliveRequest request)
nodeId - the node to which to send the requestrequest - the request to sendCompletableFuture<QueryResponse> query(io.atomix.cluster.NodeId nodeId, QueryRequest request)
nodeId - the node to which to send the requestrequest - the request to sendCompletableFuture<CommandResponse> command(io.atomix.cluster.NodeId nodeId, CommandRequest 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 sendvoid reset(Set<io.atomix.cluster.NodeId> members, ResetRequest request)
members - the members to which to send the requestrequest - the reset request to multicastvoid registerHeartbeatHandler(Function<HeartbeatRequest,CompletableFuture<HeartbeatResponse>> handler)
handler - the heartbeat request handler to registervoid unregisterHeartbeatHandler()
void registerPublishListener(io.atomix.primitive.session.SessionId sessionId,
Consumer<PublishRequest> 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 unregisterPublishListener(io.atomix.primitive.session.SessionId sessionId)
sessionId - the session for which to unregister the listenerCopyright © 2013–2018. All rights reserved.