Package io.microraft.model.log
Interface RaftGroupMembersView
-
- All Superinterfaces:
RaftModel,Serializable
public interface RaftGroupMembersView extends RaftModel
Represents the member list of a Raft group with an index identifying on which log index the given member list is appended to the Raft log.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRaftGroupMembersView.RaftGroupMembersViewBuilder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetLogIndex()Returns the Raft log index that contains this 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.
-
-
-
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
-
-