Concatenate this
Actions with that
Actions
Declares an event handler
Declares an event handler
- the event handler function
an Actions for A
Returns a CommandHandlerInvoker for the passed Command.
Returns a CommandHandlerInvoker for the passed Command. Invokers are delayed execution
of Command Handlers
and abstract over the Functor that will be returned when handling the command.
Internally, this method calls the declared Command Handlers
.
Applies the passed Event producing a new instance of Aggregate.
Applies the passed Event producing a new instance of Aggregate.
Internally, this method calls the declared Event Handlers
.
MissingEventHandlerException
if no Event handler is defined for the passed event.
Declares a guard clause that reject commands that fulfill a given condition.
Declares a guard clause that reject commands that fulfill a given condition.
A guard clause is a Command Handler
as it handles an incoming command,
but instead of producing Event, it returns a Throwable to signalize an error condition.
Guard clauses command handlers have precedence over handlers producing Events.
- a PartialFunction from Command to Throwable.
- return a Actions.
Alias to reject