DomainEventStream

Event Stream . Relation: Event Stream 1:1 CommandId.

必须保证按照版本号升序排序,且版本号单调递增.

Author

ahoo wang

Inheritors

Properties

Link copied to clipboard
abstract override val aggregateId: AggregateId
Link copied to clipboard
abstract val aggregateName: String
Link copied to clipboard
abstract val body: List<DomainEvent<*>>
Link copied to clipboard
abstract val commandId: String
Link copied to clipboard
abstract val contextName: String
Link copied to clipboard
abstract val createTime: Long
Link copied to clipboard
abstract val header: Header
Link copied to clipboard
abstract val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val requestId: String
Link copied to clipboard
abstract val size: Int
Link copied to clipboard
abstract 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
abstract fun copy(): DomainEventStream
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
Link copied to clipboard
Link copied to clipboard
abstract operator 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 fun withHeader(additionalSource: Map<String, String>): DomainEventStream
open fun withHeader(key: String, value: String): DomainEventStream
Link copied to clipboard