Search in sources :

Example 1 with ReplicateTask

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

the class RaftNodeImpl method replicate.

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

Aggregations

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