filter

open override fun filter(exchange: ServerCommandExchange<*>, next: FilterChain<ServerCommandExchange<*>>): Mono<Void>

Filters the command exchange by sending a state event if applicable. Creates and sends a state event containing both the domain event and aggregate state, then continues the filter chain.

Return

A Mono that completes when filtering is done.

Parameters

exchange

The server command exchange containing the command and resulting events.

next

The next filter in the chain.