onStore

open fun onStore(eventStore: EventStore, eventStream: DomainEventStream): Mono<CommandState>

Stores the event stream in the event store.

Return

A Mono that completes with the next command state.

Parameters

eventStore

The event store to append to.

eventStream

The domain event stream to store.

Throws

if the current state doesn't support storing.