Search in sources :

Example 1 with QueryTask

use of com.hazelcast.cp.internal.raft.impl.task.QueryTask in project hazelcast by hazelcast.

the class RaftNodeImpl method query.

@Override
public InternalCompletableFuture query(Object operation, QueryPolicy queryPolicy) {
    InternalCompletableFuture resultFuture = raftIntegration.newCompletableFuture();
    raftIntegration.execute(new QueryTask(this, operation, queryPolicy, resultFuture));
    return resultFuture;
}
Also used : QueryTask(com.hazelcast.cp.internal.raft.impl.task.QueryTask) InternalCompletableFuture(com.hazelcast.spi.impl.InternalCompletableFuture)

Aggregations

QueryTask (com.hazelcast.cp.internal.raft.impl.task.QueryTask)1 InternalCompletableFuture (com.hazelcast.spi.impl.InternalCompletableFuture)1