append

open override fun append(eventStream: DomainEventStream): Mono<Void>

Appends a domain event stream to the event store. Logs the operation and maps version conflicts to appropriate exceptions.

Return

a Mono that completes when the append operation is done

Parameters

eventStream

the domain event stream to append

Throws

if the aggregate ID already exists (for initial version)

if there's a version conflict