Command handlers and optional functions for other signals, e.g.
Command handlers and optional functions for other signals,
e.g. Termination
messages if watch
is used.
CommandHandlerImpl is an immutable class.
A command handler returns a Persist
directive that defines what event or events
to persist.
A command handler returns a Persist
directive that defines what event or events
to persist. Use the thenPersist
, thenPersistAll
methods of the context
that is passed to the command handler function to create the Persist
directive.
Additional side effects after successful persist can be performed in the callback andThen