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);
}
Aggregations