DelegatingCommandDispatcher

A CommandDispatcher, that delegates the responsibilities to an aggregated delegate instance.

See also

Functions

Link copied to clipboard
public final DispatchOutcome dispatch(CommandEnvelope envelope)
Dispatches the message contained in the passed envelope and returns the outcome.
Link copied to clipboard
public final ImmutableSet<CommandClass> messageClasses()
Obtains a set of message classes that can be processed by this dispatcher.
Link copied to clipboard
Creates a new instance of DelegatingCommandDispatcher, proxying the calls to the passed delegate.
Link copied to clipboard
public String toString()
Returns the string representation of this dispatcher.

Inherited functions

Link copied to clipboard
public boolean canDispatch(E envelope)
Checks if this dispatcher can dispatch the given message.
Link copied to clipboard
public boolean dispatchesCommands()
Verifies if this instance dispatches at least one command.