Search in sources :

Example 1 with MembershipChangeTask

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

the class RaftNodeImpl method replicateMembershipChange.

@Override
public InternalCompletableFuture replicateMembershipChange(RaftEndpoint member, MembershipChangeMode mode, long groupMembersCommitIndex) {
    InternalCompletableFuture resultFuture = raftIntegration.newCompletableFuture();
    raftIntegration.execute(new MembershipChangeTask(this, resultFuture, member, mode, groupMembersCommitIndex));
    return resultFuture;
}
Also used : InternalCompletableFuture(com.hazelcast.spi.impl.InternalCompletableFuture) MembershipChangeTask(com.hazelcast.cp.internal.raft.impl.task.MembershipChangeTask)

Example 2 with MembershipChangeTask

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

the class RaftNodeImpl method replicateMembershipChange.

@Override
public InternalCompletableFuture replicateMembershipChange(RaftEndpoint member, MembershipChangeMode mode) {
    InternalCompletableFuture resultFuture = raftIntegration.newCompletableFuture();
    execute(new MembershipChangeTask(this, resultFuture, member, mode));
    return resultFuture;
}
Also used : InternalCompletableFuture(com.hazelcast.spi.impl.InternalCompletableFuture) MembershipChangeTask(com.hazelcast.cp.internal.raft.impl.task.MembershipChangeTask)

Aggregations

MembershipChangeTask (com.hazelcast.cp.internal.raft.impl.task.MembershipChangeTask)2 InternalCompletableFuture (com.hazelcast.spi.impl.InternalCompletableFuture)2