SnapshotWriteCheckpoint

The snapshot write checkpoint of an aggregate type: a value that does not change while no snapshot of the type is written, so a count taken at one value is still the count while the value holds. The host gives the snapshot subscription's progress over the type's partitions; it may move without a write of the type (a write of another type in the same partitions), which only costs a recount.

Functions

Link copied to clipboard
abstract suspend fun of(type: AggregateType): Long?

The checkpoint of type now, or null when it cannot be told: its counts are then not cached.