AggregateChangeResult
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 Success<out STATE : AggregateState, out EVENT> : AggregateChangeResult<STATE, EVENT> , HasCommittedState<STATE>
Functions
Link copied to clipboard
fun <STATE : AggregateState> AggregateChangeResult<STATE, *>.committedStateOrNull(): CommittedState<STATE>?
Returns committed state for either success branch, or null for every failure branch.