DispatchStrategy class abstract interface

Strategy to use for dispatching events to the handlers

Constructors

DispatchStrategy.concurrent()
Dispatches events concurrently to all EventHandler's.
const
factory
DispatchStrategy.sequential()
Dispatches events one by one to the EventHandler's.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute<TEvent extends DomainEvent>(Set<EventHandler<TEvent>> handlers, TEvent event, List<EventObserver> observers) Future<void>
Executes the given strategy by applying the event to the given handlers.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited