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

Link copied to clipboard
Link copied to clipboard
open override val aggregateName: String
Link copied to clipboard
open override val contextName: String
Link copied to clipboard
open override val messageFlux: Flux<ServerCommandExchange<*>>
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val namedAggregate: NamedAggregate
Link copied to clipboard
open override val parallelism: Int
Link copied to clipboard
open override val scheduler: Scheduler

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
override fun cancel()
Link copied to clipboard
open override fun close()
Link copied to clipboard
open fun currentContext(): Context
Link copied to clipboard
open override fun dispose()
Link copied to clipboard
Link copied to clipboard
fun NamedBoundedContext.getContextAlias(boundedContext: BoundedContext? = MetadataSearcher.metadata.contexts[contextName]): String
Link copied to clipboard
open override fun handleExchange(exchange: ServerCommandExchange<*>): Mono<Void>
Link copied to clipboard
open override fun isDisposed(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
override fun onComplete()
Link copied to clipboard
override fun onError(p0: Throwable)
Link copied to clipboard
override fun onNext(p0: Void)
Link copied to clipboard
override fun onSubscribe(p0: Subscription)
Link copied to clipboard
override fun request(p0: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun run()
Link copied to clipboard
open fun safeOnNext(value: Void)
Link copied to clipboard
open fun safeOnNextError(value: Void, throwable: Throwable)
Link copied to clipboard
open override fun ServerCommandExchange<*>.toGroupKey(): Int
Link copied to clipboard