SimpleCommandAggregate

class SimpleCommandAggregate<C : Any, S : Any>(val state: StateAggregate<S>, val commandRoot: C, eventStore: EventStore, metadata: CommandAggregateMetadata<C>) : CommandAggregate<C, S> , NamedTypedAggregate<C>

Constructors

Link copied to clipboard
constructor(state: StateAggregate<S>, commandRoot: C, eventStore: EventStore, metadata: CommandAggregateMetadata<C>)

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<C>
Link copied to clipboard
open override val commandRoot: C
Link copied to clipboard
Link copied to clipboard
open override val contextName: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val processorName: String
Link copied to clipboard
open override 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
open override fun isSameAggregateName(other: NamedAggregate): Boolean
Link copied to clipboard
Link copied to clipboard
open 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
open override fun toString(): String
Link copied to clipboard