AggregateRepositoryComposed
class AggregateRepositoryComposed<STATE : AggregateState, COMMAND, EVENT : Any, EVENT_PERSISTED : Any>(definition: AggregateDefinition<STATE, COMMAND, EVENT, EVENT_PERSISTED>, eventStore: AggregateEventStore<EVENT>, snapshotStore: SnapshotStore<STATE> = SnapshotStoreNoOp(), aggregateStateSchema: AggregateStateSchema<STATE, *>? = null) : AggregateRepository<STATE, COMMAND, EVENT> (source)
Standard AggregateRepository composed from a decider, evolver, event store, and snapshots.
Constructors
Link copied to clipboard
constructor(definition: AggregateDefinition<STATE, COMMAND, EVENT, EVENT_PERSISTED>, eventStore: AggregateEventStore<EVENT>, snapshotStore: SnapshotStore<STATE> = SnapshotStoreNoOp(), aggregateStateSchema: AggregateStateSchema<STATE, *>? = null)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun newAggregate(command: CommandEnvelope<COMMAND>): NewAggregateResult<STATE, COMMAND, EVENT>
Link copied to clipboard
open suspend override fun recoverAppend(preparedAppend: PreparedAppend<EVENT>): AggregateRecoveryResult<STATE, COMMAND, EVENT>
Recovers an uncertain append using its original prepared form, without handling the command again.