Class DurableStateBehavior.CommandHandler$
java.lang.Object
org.apache.pekko.persistence.typed.state.scaladsl.DurableStateBehavior.CommandHandler$
- Enclosing interface:
- DurableStateBehavior<Command,
State>
The
CommandHandler defines how to act on commands. A CommandHandler is
a function:
(State, Command) => Effect[State]
The CommandHandler#command is useful for simple commands that don't need the state
and context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DurableStateBehavior.CommandHandler$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
CommandHandler$
public CommandHandler$()
-
-
Method Details