AggregateSeed
sealed interface AggregateSeed<EVENT, out STATE : AggregateState> : HasAggregateId, HasEvents<CommittedEvent<EVENT>> , HasAggregateVersion(source)
Event history or snapshot state used to reconstruct an AggregateComposed.
Inheritors
Types
Link copied to clipboard
data class FullHistory<EVENT>(val version: Long, val initialEvent: CommittedEvent<EVENT>, val additionalHistory: List<CommittedEvent<EVENT>>) : AggregateSeed<EVENT, Nothing>
Link copied to clipboard
data class Snapshot<EVENT, STATE : AggregateState>(val version: Long, val snapshot: STATE, val additionalHistory: List<CommittedEvent<EVENT>>) : AggregateSeed<EVENT, STATE>