Search in sources :

Example 1 with QueryRequest

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);
}
Also used : QueryRequest(io.atomix.protocols.raft.protocol.QueryRequest)

Aggregations

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