Class MismatchingRaftGroupMembersCommitIndexException

  • All Implemented Interfaces:
    Serializable

    public class MismatchingRaftGroupMembersCommitIndexException
    extends RaftException
    Thrown when a membership change is triggered with an expected group members commit index that doesn't match the current group members commit index in the local state of the Raft group leader. A group members commit index is the Raft log index at which the current Raft group member list is committed.
    See Also:
    Serialized Form
    • Constructor Detail

      • MismatchingRaftGroupMembersCommitIndexException

        public MismatchingRaftGroupMembersCommitIndexException​(long commitIndex,
                                                               Collection<RaftEndpoint> members)
        Creates an instance of this exception
        Parameters:
        commitIndex - the commit index of the current Raft group members
        members - the current Raft group members knwon by the Raft node
    • Method Detail

      • getCommitIndex

        public long getCommitIndex()
        Returns the commit index of the current Raft group members.
        Returns:
        the commit index of the current Raft group members.
      • getMembers

        public Collection<RaftEndpoint> getMembers()
        Returns the current Raft group members knwon by the Raft node
        Returns:
        the current Raft group members knwon by the Raft node