AppendResult

sealed interface AppendResult<out EVENT>(source)

Result of atomically submitting a PreparedAppend.

Inheritors

Types

Link copied to clipboard
data class Committed<EVENT>(val versionBefore: Long, val versionAfter: Long, val events: List<CommittedEvent<EVENT>>) : AppendResult<EVENT> , HasAggregateVersion

The append is committed at the reported range. This includes successful exact retries; callers do not need to distinguish which attempt physically wrote the events.

Link copied to clipboard
sealed interface Failure<out EVENT> : AppendResult<EVENT>