Class RestoredRaftState

java.lang.Object
io.microraft.persistence.RestoredRaftState

public final class RestoredRaftState extends Object
Contains restored state of a RaftNode. All the fields in this class are persisted via RaftStore.
  • Constructor Details

    • RestoredRaftState

      public RestoredRaftState(@Nonnull io.microraft.model.persistence.RaftEndpointPersistentState localEndpointPersistentState, @Nonnull io.microraft.model.log.RaftGroupMembersView initialGroupMembers, @Nonnull io.microraft.model.persistence.RaftTermPersistentState termPersistentState, @Nullable io.microraft.model.log.SnapshotEntry snapshotEntry, @Nonnull List<io.microraft.model.log.LogEntry> entries)
  • Method Details

    • getLocalEndpointPersistentState

      @Nonnull public io.microraft.model.persistence.RaftEndpointPersistentState getLocalEndpointPersistentState()
    • getInitialGroupMembers

      @Nonnull public io.microraft.model.log.RaftGroupMembersView getInitialGroupMembers()
    • getTermPersistentState

      @Nonnull public io.microraft.model.persistence.RaftTermPersistentState getTermPersistentState()
    • getSnapshotEntry

      @Nullable public io.microraft.model.log.SnapshotEntry getSnapshotEntry()
    • getLogEntries

      @Nonnull public List<io.microraft.model.log.LogEntry> getLogEntries()