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
Fields Modifier and Type Field Description static int
MAX_LEARNER_COUNT
The maximum number ofRaftRole.LEARNER
members allowed in the Raft group member list.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getLogIndex()
Returns the Raft log index that contains this Raft group member list.int
getMajorityQuorumSize()
Returns the majority quorum size of the Raft group member list.Collection<RaftEndpoint>
getMembers()
Returns the member list of the Raft group.Collection<RaftEndpoint>
getVotingMembers()
Returns voting members in the Raft group member list.
-
-
-
Field Detail
-
MAX_LEARNER_COUNT
static final int MAX_LEARNER_COUNT
The maximum number ofRaftRole.LEARNER
members allowed in the Raft group member list.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
@Nonnull Collection<RaftEndpoint> getMembers()
Returns the member list of the Raft group.- Returns:
- the member list of the Raft group
-
getVotingMembers
@Nonnull Collection<RaftEndpoint> 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
-
-