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.

    • Method Detail

      • getSnapshotChunkIndex

        int getSnapshotChunkIndex()
      • getSnapshotChunkCount

        int getSnapshotChunkCount()