EventStreamDispatcher
class EventStreamDispatcher(val name: String, val parallelism: Int, val messageBus: DomainEventBus, val functionRegistrar: MessageFunctionRegistrar<MessageFunction<Any, DomainEventExchange<*>, Mono<*>>>, val eventHandler: EventHandler, val schedulerSupplier: AggregateSchedulerSupplier, metrics: WowMetrics = WowMetrics.NONE) : AbstractEventDispatcher<EventStreamExchange, DomainEventBus>
Constructors
Link copied to clipboard
constructor(name: String, parallelism: Int, messageBus: DomainEventBus, functionRegistrar: MessageFunctionRegistrar<MessageFunction<Any, DomainEventExchange<*>, Mono<*>>>, eventHandler: EventHandler, schedulerSupplier: AggregateSchedulerSupplier, metrics: WowMetrics = WowMetrics.NONE)
Properties
Link copied to clipboard
The event handler for processing events.
Link copied to clipboard
open override val functionRegistrar: MessageFunctionRegistrar<MessageFunction<Any, DomainEventExchange<*>, Mono<*>>>
The registrar containing event processing functions.
Link copied to clipboard
The message bus for sending and receiving events.
Link copied to clipboard
The level of parallelism for processing events.
Link copied to clipboard
Functions
Link copied to clipboard
open override fun newAggregateDispatcher(namedAggregate: NamedAggregate, messageFlux: Flux<EventStreamExchange>): MessageDispatcher
Creates a new message dispatcher for a specific named aggregate.