dispatchCommand

protected DispatchOutcome dispatchCommand(CommandEnvelope command)

Obtains a method for the passed command and invokes it.

Dispatching the commands results in emitting event messages. All the empty messages are filtered out from the result.

Return

a list of event messages that the aggregate produces by handling the command

Parameters

command

the envelope with the command to dispatch