Abstract Commander
public abstract class AbstractCommander extends AbstractCommandDispatcher implements Commander, EventDispatcherDelegate
The abstract base for classes that generate commands in response to incoming messages.
Functions
Link copied to clipboard
Dispatches the message contained in the passed envelope and returns the outcome.
Link copied to clipboard
Dispatches the event and returns the outcome of dispatching.
Link copied to clipboard
Obtains domestic event classes dispatched by this delegate.
Link copied to clipboard
Obtains external event classes dispatched by this delegate.
Link copied to clipboard
Obtains a set of message classes that can be processed by this dispatcher.
Link copied to clipboard
Obtains classes of the events produced by this object.
Link copied to clipboard
Registers this instance as a part of the given Bounded Context.
Inherited functions
Link copied to clipboard
Checks if this dispatcher can dispatch the given message.
Link copied to clipboard
Verifies that this instance is NOT registered yet.
Link copied to clipboard
Verifies that this instance is already registered.
Link copied to clipboard
Verifies if this instance dispatches at least one command.
Link copied to clipboard
Verifies if this instance dispatches at least one event.
Link copied to clipboard
Verifies if this instance dispatches at least one external event.
Link copied to clipboard
Determines if this instance is already registered with a Bounded Context.
Link copied to clipboard
protected void onRejection(SignalEnvelope<? extends Object, ? extends Object, ? extends Object> signal, Event rejection)
Link copied to clipboard
Posts passed events to EventBus.
Link copied to clipboard
Obtains ID packed into
Any
for being used in generated events.