Package io.atomix.raft.storage.log
Interface IndexedRaftLogEntry
public interface IndexedRaftLogEntry
Stores a state change in a
RaftLog.-
Method Summary
Modifier and TypeMethodDescriptionentry()Return the raft entry in the recordReturns aPersistedRaftRecordthat can be replicatedlongindex()Returns the index of the recorddefault booleanlongterm()Returns the term of the record
-
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 anApplicationEntry, otherwise false
-
getApplicationEntry
ApplicationEntry getApplicationEntry() -
getPersistedRaftRecord
PersistedRaftRecord getPersistedRaftRecord()Returns aPersistedRaftRecordthat can be replicated- Returns:
- a record to replicate
-
getReplicatableJournalRecord
ReplicatableJournalRecord getReplicatableJournalRecord()- Returns:
- a record to replicate
-