Package io.microraft.model.log
Interface BaseLogEntry
-
- All Superinterfaces:
RaftModel
,Serializable
- All Known Subinterfaces:
LogEntry
,SnapshotChunk
,SnapshotEntry
public interface BaseLogEntry extends RaftModel
Base class for Raft log entries.Each log entry stores an operation that will be executed on the state machine along with the term number when the operation was received by the leader. Term numbers are used to detect inconsistencies between logs. Each log entry also has an integer index identifying its position in the Raft log.
BaseLogEntry
objects are created byRaftModelFactory
.- See Also:
RaftModel
,RaftModelFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getIndex()
Object
getOperation()
int
getTerm()
-
-
-
Method Detail
-
getIndex
long getIndex()
-
getTerm
int getTerm()
-
getOperation
@Nonnull Object getOperation()
-
-