AggregateChangeResult

sealed interface AggregateChangeResult<out STATE : AggregateState, out EVENT>(source)

Expected outcomes of handling a command. Unexpected programming or infrastructure failures are thrown rather than represented here.

Inheritors

Types

Link copied to clipboard
sealed interface Failure<out EVENT> : AggregateChangeResult<Nothing, EVENT>
Link copied to clipboard

Functions

Link copied to clipboard

Returns committed state for either success branch, or null for every failure branch.