AggregateCommandDispatcher
class AggregateCommandDispatcher<C : Any, S : Any>(val aggregateMetadata: AggregateMetadata<C, S>, val parallelism: Int = MessageParallelism.DEFAULT_PARALLELISM, val scheduler: Scheduler, val messageFlux: Flux<ServerCommandExchange<*>>, val name: String = "-", aggregateProcessorFactory: AggregateProcessorFactory, commandHandler: CommandHandler, serviceProvider: ServiceProvider) : AggregateMessageDispatcher<ServerCommandExchange<*>>
Aggregate Command Dispatcher Grouped by NamedAggregate.
----One AggregateId binds one Worker(Thread). One Worker can be bound by multiple aggregateIds. Workers have aggregate ID affinity.
Author
ahoo wang
Constructors
Link copied to clipboard
constructor(aggregateMetadata: AggregateMetadata<C, S>, parallelism: Int = MessageParallelism.DEFAULT_PARALLELISM, scheduler: Scheduler, messageFlux: Flux<ServerCommandExchange<*>>, name: String = "-", aggregateProcessorFactory: AggregateProcessorFactory, commandHandler: CommandHandler, serviceProvider: ServiceProvider)
Properties
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
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard