Package io.microraft.report
Interface RaftGroupMembers
public interface RaftGroupMembers
Represents member list of a Raft group with an index identifying on which log
index the given member list is appended to the Raft log.
The initial member list of a Raft group has log index of 0.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The maximum number ofRaftRole.LEARNER
members allowed in the Raft group member list. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the Raft log index that contains this Raft group member list.int
Returns the majority quorum size of the Raft group member list.Returns the member list of the Raft group.Returns voting members in the Raft group member list.
-
Field Details
-
MAX_LEARNER_COUNT
static final int MAX_LEARNER_COUNTThe maximum number ofRaftRole.LEARNER
members allowed in the Raft group member list.- See Also:
-
-
Method Details
-
getLogIndex
long getLogIndex()Returns the Raft log index that contains this Raft group member list.- Returns:
- the Raft log index that contains this Raft group member list
-
getMembers
Returns the member list of the Raft group.- Returns:
- the member list of the Raft group
-
getVotingMembers
Returns voting members in the Raft group member list.- Returns:
- voting members in the Raft group member list
-
getMajorityQuorumSize
int getMajorityQuorumSize()Returns the majority quorum size of the Raft group member list.- Returns:
- the majority quorum size of the Raft group member list
-