Archived

data class Archived<Op>(val offset: Long, val endOffset: Long, val arrivedAt: Instant, val insertDots: Set<Dot>, val key: String?, val ops: List<Op>) : ReplayEvent<Op>

One archived frame.

Constructors

Link copied to clipboard
constructor(offset: Long, endOffset: Long, arrivedAt: Instant, insertDots: Set<Dot>, key: String?, ops: List<Op>)

Properties

Link copied to clipboard

when the archive was told about these ops. Not when they happened — see ReplayScope.Arrived. Stored to millisecond resolution: sub-millisecond precision on the appending clock is truncated (always earlier, never rounded), which is a property of the format and not of any one backend.

Link copied to clipboard

one past this frame's last byte; the next frame's offset, and the resume cursor for "everything after this one".

Link copied to clipboard

the dots minted by this frame's Insert ops. Empty for a frame of pure removes, and that is the format's promise, not an omission: a Remove mints no dot.

Link copied to clipboard
val key: String?

the reserved key slot — always null in format version BOLT_FORMAT_VERSION. The slot exists so event-time indexing can be layered on later without a format change.

Link copied to clipboard

this frame's append offset — the coordinate ReplayScope.FromOffset takes.

Link copied to clipboard
val ops: List<Op>

the archived operations, in the order they were appended.