com.lightbend.lagom.scaladsl.persistence.PersistentEntity
Reply with a negative acknowledgment.
Reply with a negative acknowledgment.
Send reply to a command.
Send reply to a command. The type R
must be the reply type defined by
the command.
A command handler may return this Persist
directive to define
that no events are to be persisted.
Reply with a negative acknowledgment using the standard
InvalidCommandException
.
Reply with a negative acknowledgment using the standard
InvalidCommandException
.
A command handler may return this Persist
directive to define
that one event is to be persisted.
A command handler may return this Persist
directive to define
that one event is to be persisted. External side effects can be
performed after successful persist in the afterPersist
function.
A command handler may return this Persist
directive to define
that several events are to be persisted.
A command handler may return this Persist
directive to define
that several events are to be persisted. External side effects can be
performed after successful persist in the afterPersist
function.
afterPersist
is invoked once when all events have been persisted
successfully.
The context that is used by command handler function. Events are persisted with the context and replies are sent with the context.
the reply type of the command