Snapshot

class Snapshot(val throughIndex: Long, val state: ByteArray)

A state-machine snapshot. Opaque to kuilt-raft — it never deserializes state; only the consumer can collapse many log entries into compact state. The same payload flows both directions: the consumer publishes it via RaftNode.snapshots (outbound), and a lagging node receives it wrapped in Committed.Install (inbound).

Parameters

throughIndex

the highest committed log index this state reflects.

state

opaque application bytes.

Constructors

Link copied to clipboard
constructor(throughIndex: Long, state: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String