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 deleted: Boolean = false) : StateEvent<S> , Decorator<DomainEventStream> , DomainEventStream

Constructors

Link copied to clipboard
constructor(delegate: DomainEventStream, state: S, firstOperator: String = delegate.header.operator.orEmpty(), firstEventTime: Long = delegate.createTime, deleted: Boolean = false)

Properties

Link copied to clipboard
open override val aggregateId: AggregateId
Link copied to clipboard
open override val aggregateName: String
Link copied to clipboard
open override val aggregateType: Class<S>

State Aggregation Type

Link copied to clipboard
open override val body: List<DomainEvent<*>>
Link copied to clipboard
open override val commandId: String
Link copied to clipboard
open override val contextName: String
Link copied to clipboard
open override val createTime: Long
Link copied to clipboard
open override val delegate: DomainEventStream
Link copied to clipboard
open override val deleted: Boolean = false

状态聚合是否已删除

Link copied to clipboard
open override val eventId: String
Link copied to clipboard
open override val eventTime: Long
Link copied to clipboard
Link copied to clipboard
open override val firstEventTime: Long
Link copied to clipboard
open override val firstOperator: String
Link copied to clipboard
open override val header: Header
Link copied to clipboard
open override val id: String
Link copied to clipboard
open override val initialized: Boolean
Link copied to clipboard
open override val isInitialVersion: Boolean
Link copied to clipboard
open override val isReadOnly: Boolean
Link copied to clipboard
open override val operator: String
Link copied to clipboard
open override val requestId: String
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val state: S
Link copied to clipboard
open override val version: Int

Functions

Link copied to clipboard
fun NamedAggregate.aggregateId(id: String = generateId(), tenantId: String = TenantId.DEFAULT_TENANT_ID): DefaultAggregateId
Link copied to clipboard
Link copied to clipboard
open override fun copy(): StateEvent<S>
Link copied to clipboard
open fun forEach(p0: Consumer<in DomainEvent<*>>)
Link copied to clipboard
Link copied to clipboard
fun NamedBoundedContext.getContextAlias(boundedContext: BoundedContext? = MetadataSearcher.metadata.contexts[contextName]): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun isSameAggregateName(other: NamedAggregate): Boolean
Link copied to clipboard
Link copied to clipboard
open operator override fun iterator(): Iterator<DomainEvent<*>>
Link copied to clipboard
fun Message<*, *>.match(function: FunctionInfo): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun AggregateIdCapable.toGroupKey(parallelism: Int = DEFAULT_PARALLELISM): Int
Link copied to clipboard
fun <S : Any> DomainEventStream.toStateEvent(state: S, firstOperator: String = header.operator.orEmpty(), firstEventTime: Long = createTime, deleted: Boolean = false): StateEvent<S>
Link copied to clipboard
Link copied to clipboard
open override fun withHeader(additionalSource: Map<String, String>): DomainEventStream
open override fun withHeader(key: String, value: String): DomainEventStream
Link copied to clipboard
open override fun withReadOnly(): DomainEventStream