StateEventData
data class StateEventData<S : Any>(val delegate: DomainEventStream, val state: S, val firstOperator: String = delegate.header.operator.orEmpty(), val firstEventTime: Long = delegate.createTime, val tags: AbacTags = EMPTY_ABAC_TAGS, val deleted: Boolean = false, val ownerId: String = delegate.ownerId, val spaceId: SpaceId = delegate.spaceId) : StateEvent<S> , Decorator<DomainEventStream> , DomainEventStream
Data class implementation of StateEvent that wraps a DomainEventStream with state information.
Parameters
delegate
the domain event stream being wrapped
state
the state of the aggregate
firstOperator
the first operator (default: from delegate header)
firstEventTime
the first event time (default: from delegate)
tags
the ABAC tags associated with the aggregate
deleted
whether the aggregate is deleted (default: false)
ownerId
the owner after sourcing the event stream
spaceId
the space after sourcing the event stream
Type Parameters
S
the type of the state