use of io.atomix.protocols.raft.protocol.QueryRequest in project atomix by atomix.
the class RaftProxyInvoker method invokeQuery.
/**
* Submits a query to the cluster.
*/
private void invokeQuery(PrimitiveOperation operation, CompletableFuture<byte[]> future) {
QueryRequest request = QueryRequest.builder().withSession(state.getSessionId().id()).withSequence(state.getCommandRequest()).withOperation(operation).withIndex(Math.max(state.getResponseIndex(), state.getEventIndex())).build();
invokeQuery(request, future);
}
Aggregations