AggregateRepository

Creates and reconstructs aggregates from event history, optionally using snapshots to accelerate loading.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun hasEventsAfter(id: String, version: Long?): Boolean

Whether id's stream holds an event after version. A null version asks whether the stream exists at all.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun recoverAppend(preparedAppend: PreparedAppend<EVENT>): AggregateRecoveryResult<STATE, COMMAND, EVENT>

Recovers an uncertain append using its original prepared form, without handling the command again.