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:
  • Constructor Details

    • 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 Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class RaftException