AccessSnapshots

Rewrites the snapshot of an aggregate from its whole log (EventStreamRecords from version 1), already replayed as its state: the access walk's share of the snapshots, which carry the attributes of the state they hold.

Types

Link copied to clipboard

Functions

Link copied to clipboard
open suspend fun page(type: AggregateType, walk: suspend (AccessSnapshots) -> Unit)

Runs walk, a page of the walk over type's aggregates, with the snapshots it rewrites through: one page of the stores' rebuilds, which read the tables' claims for the page, not for each aggregate. These by default.

Link copied to clipboard
abstract suspend fun rewrite(ref: AggregateRef, streams: List<EventStreamRecord>, state: CachedState)