Type alias Snapshot<S, E>
Snapshot<S, E>: { applyCount: number; event?: CommittedEvent<E>; state: S; stateCount: number; }
Type declaration
-
Readonly
applyCount: number
-
Optional
Readonly
event?: CommittedEvent<E>
-
Readonly
state: S
-
Readonly
stateCount: number
Snapshots hold reduced state and last applied event
state
the current state of the artifactevent?
the last event applied to the stateapplyCount
the number of events reduced after last snapshotstateCount
the number of state events after last snapshot