Package io.microraft.model.log
Interface SnapshotChunk
-
- All Superinterfaces:
BaseLogEntry
,RaftModel
,Serializable
public interface SnapshotChunk extends BaseLogEntry
Represents a snapshot chunk.A snapshot entry in the Raft log contains at least one snapshot chunk.
Snapshot chunks are ordered by snapshot chunk indices. They contain objects provided to the consumer argument of
StateMachine.takeSnapshot(long, Consumer)
. Additionally, a snapshot chunk contains the committed Raft group member list along with its commit index at the time of the snapshot creation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SnapshotChunk.SnapshotChunkBuilder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RaftGroupMembersView
getGroupMembersView()
int
getSnapshotChunkCount()
int
getSnapshotChunkIndex()
-
Methods inherited from interface io.microraft.model.log.BaseLogEntry
getIndex, getOperation, getTerm
-
-
-
-
Method Detail
-
getSnapshotChunkIndex
int getSnapshotChunkIndex()
-
getSnapshotChunkCount
int getSnapshotChunkCount()
-
getGroupMembersView
@Nonnull RaftGroupMembersView getGroupMembersView()
-
-