CommandAggregate

Command Aggregate .

  1. 订阅命令消息

  2. 依赖状态聚合持有的聚合状态,验证业务规则

  3. 发布领域事件

订阅命令消息,并依赖状态聚合的当前状态验证业务规则.

Author

ahoo wang

Inheritors

Properties

Link copied to clipboard
open override val aggregateId: AggregateId
Link copied to clipboard
abstract val aggregateName: String
Link copied to clipboard
abstract val aggregateType: Class<C>
Link copied to clipboard
abstract val commandRoot: C
Link copied to clipboard
Link copied to clipboard
abstract val contextName: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val processorName: String
Link copied to clipboard
abstract val state: StateAggregate<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
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
abstract override fun process(exchange: ServerCommandExchange<*>): Mono<DomainEventStream>

Processing of commands must be serial.

Link copied to clipboard
Link copied to clipboard
fun AggregateIdCapable.toGroupKey(parallelism: Int = DEFAULT_PARALLELISM): Int
Link copied to clipboard