Interface InstallSnapshotRequest

  • All Superinterfaces:
    RaftMessage, RaftModel, Serializable

    public interface InstallSnapshotRequest
    extends RaftMessage
    Raft message for the InstallSnapshot RPC.

    See 7 Log compaction section of In Search of an Understandable Consensus Algorithm paper by Diego Ongaro and John Ousterhout.

    Invoked by leader to send chunks of a snapshot to a follower. Chunks are sent in the order defined by the follower and the follower is free to request the chunks in any order.

    See Also:
    InstallSnapshotResponse
    • Method Detail

      • isSenderLeader

        boolean isSenderLeader()
      • getSnapshotTerm

        int getSnapshotTerm()
      • getSnapshotIndex

        long getSnapshotIndex()
      • getTotalSnapshotChunkCount

        int getTotalSnapshotChunkCount()
      • getQuerySequenceNumber

        long getQuerySequenceNumber()
      • getFlowControlSequenceNumber

        long getFlowControlSequenceNumber()