onEvent

abstract fun onEvent(stateEventExchange: StateEventExchange<*>): Mono<Void>

Processes a state event exchange to determine if a snapshot should be created. Implementations should analyze the event and potentially trigger snapshot creation.

Return

A Mono that completes when the snapshot strategy processing is done.

Parameters

stateEventExchange

The state event exchange containing the event and aggregate state.