Package io.microraft.persistence
Class RestoredRaftState
- java.lang.Object
-
- io.microraft.persistence.RestoredRaftState
-
public final class RestoredRaftState extends Object
-
-
Constructor Summary
Constructors Constructor Description RestoredRaftState(RaftEndpoint localEndpoint, boolean localEndpointVoting, RaftGroupMembersView initialGroupMembers, int term, RaftEndpoint votedMember, SnapshotEntry snapshotEntry, List<LogEntry> entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RaftGroupMembersView
getInitialGroupMembers()
RaftEndpoint
getLocalEndpoint()
List<LogEntry>
getLogEntries()
SnapshotEntry
getSnapshotEntry()
int
getTerm()
RaftEndpoint
getVotedMember()
boolean
isLocalEndpointVoting()
-
-
-
Constructor Detail
-
RestoredRaftState
public RestoredRaftState(@Nonnull RaftEndpoint localEndpoint, boolean localEndpointVoting, @Nonnull RaftGroupMembersView initialGroupMembers, int term, @Nullable RaftEndpoint votedMember, @Nullable SnapshotEntry snapshotEntry, @Nonnull List<LogEntry> entries)
-
-
Method Detail
-
getLocalEndpoint
@Nonnull public RaftEndpoint getLocalEndpoint()
-
isLocalEndpointVoting
public boolean isLocalEndpointVoting()
-
getInitialGroupMembers
@Nonnull public RaftGroupMembersView getInitialGroupMembers()
-
getTerm
public int getTerm()
-
getVotedMember
@Nullable public RaftEndpoint getVotedMember()
-
getSnapshotEntry
@Nullable public SnapshotEntry getSnapshotEntry()
-
-