Interface IndexedRaftLogEntry


public interface IndexedRaftLogEntry
Stores a state change in a RaftLog.
  • Method Details

    • index

      long index()
      Returns the index of the record
      Returns:
      index
    • term

      long term()
      Returns the term of the record
      Returns:
      term
    • entry

      RaftEntry entry()
      Return the raft entry in the record
      Returns:
    • isApplicationEntry

      default boolean isApplicationEntry()
      Returns:
      true if entry() is an ApplicationEntry, otherwise false
    • getApplicationEntry

      ApplicationEntry getApplicationEntry()
    • getPersistedRaftRecord

      PersistedRaftRecord getPersistedRaftRecord()
      Returns a PersistedRaftRecord that can be replicated
      Returns:
      a record to replicate
    • getReplicatableJournalRecord

      ReplicatableJournalRecord getReplicatableJournalRecord()
      Returns:
      a record to replicate