Search in sources :

Example 1 with InitLeadershipTransferTask

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

the class RaftNodeImpl method transferLeadership.

@Override
public InternalCompletableFuture transferLeadership(RaftEndpoint endpoint) {
    InternalCompletableFuture resultFuture = raftIntegration.newCompletableFuture();
    raftIntegration.execute(new InitLeadershipTransferTask(this, endpoint, resultFuture));
    return resultFuture;
}
Also used : InternalCompletableFuture(com.hazelcast.spi.impl.InternalCompletableFuture) InitLeadershipTransferTask(com.hazelcast.cp.internal.raft.impl.task.InitLeadershipTransferTask)

Aggregations

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