public class MembershipChangeTask extends Object implements Runnable
If membership change type is ADD but the member already exists in the group,
then future is notified with MemberAlreadyExistsException
.
If membership change type is REMOVE but the member doesn't exist
in the group, then future is notified with
MemberDoesNotExistException
.
UpdateRaftGroupMembersCmd
Raft operation is created with members
according to the member parameter and membership change and it's replicated
via ReplicateTask
.
MembershipChangeMode
Constructor and Description |
---|
MembershipChangeTask(RaftNodeImpl raftNode,
SimpleCompletableFuture resultFuture,
Endpoint member,
MembershipChangeMode membershipChangeMode) |
MembershipChangeTask(RaftNodeImpl raftNode,
SimpleCompletableFuture resultFuture,
Endpoint member,
MembershipChangeMode membershipChangeMode,
Long groupMembersCommitIndex) |
public MembershipChangeTask(RaftNodeImpl raftNode, SimpleCompletableFuture resultFuture, Endpoint member, MembershipChangeMode membershipChangeMode)
public MembershipChangeTask(RaftNodeImpl raftNode, SimpleCompletableFuture resultFuture, Endpoint member, MembershipChangeMode membershipChangeMode, Long groupMembersCommitIndex)
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.