Search in sources :

Example 1 with CommandRequest

use of io.atomix.protocols.raft.protocol.CommandRequest in project atomix by atomix.

the class RaftProxyInvoker method invokeCommand.

/**
 * Submits a command to the cluster.
 */
private void invokeCommand(PrimitiveOperation operation, CompletableFuture<byte[]> future) {
    CommandRequest request = CommandRequest.builder().withSession(state.getSessionId().id()).withSequence(state.nextCommandRequest()).withOperation(operation).build();
    invokeCommand(request, future);
}
Also used : CommandRequest(io.atomix.protocols.raft.protocol.CommandRequest)

Aggregations

CommandRequest (io.atomix.protocols.raft.protocol.CommandRequest)1