Success
sealed interface Success<out STATE : AggregateState, out EVENT> : AggregateChangeResult<STATE, EVENT> , HasCommittedState<STATE> (source)
Inheritors
Types
Link copied to clipboard
data class Applied<STATE : AggregateState, EVENT>(val committedState: CommittedState<STATE>, val events: List<CommittedEvent<EVENT>>) : AggregateChangeResult.Success<STATE, EVENT>
Link copied to clipboard
data class NoChange<STATE : AggregateState>(val committedState: CommittedState<STATE>) : AggregateChangeResult.Success<STATE, Nothing>
The command was accepted without producing or persisting events.
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.