committed

abstract suspend fun committed(ref: AggregateRef): Snapshot<JsonNode>?

ref's latest committed state, or null when it has none.


open suspend fun committed(ref: AggregateRef, minVersion: Int): Snapshot<JsonNode>?

ref's latest committed state at version minVersion or later, waited for a bounded time: the state read last, below minVersion when the wait ran out, or null when it has none. By default the latest one as it is; the runtime's catches a lagging snapshot up and waits. A catch-up longer than the node replays is InvalidStateReadException with the violation replay-too-long.