Not for user extension
Not for user extension
CommandHandler
defines command handlers and partial function for other signals,
e.g.
CommandHandler
defines command handlers and partial function for other signals,
e.g. Termination
messages if watch
is used.
CommandHandler
is an immutable class.
Instances are created through the factories in the Effect companion object.
Instances are created through the factories in the Effect companion object.
Not for user extension.
The CommandHandler
defines how to act on commands and partial function for other signals,
e.g.
The CommandHandler
defines how to act on commands and partial function for other signals,
e.g. Termination
messages if watch
is used.
Note that you can have different command handlers based on current state by using CommandHandler#byState.
Factories for effects - how a persitent actor reacts on a command
Create a Behavior
for a persistent actor.
Create a Behavior
for a persistent actor in Cluster Sharding, when the persistenceId is not known
until the actor is started and typically based on the entityId, which
is the actor name.
Create a Behavior
for a persistent actor in Cluster Sharding, when the persistenceId is not known
until the actor is started and typically based on the entityId, which
is the actor name.
TODO This will not be needed when it can be wrapped in Actor.deferred
.