Class EventSourcedBehavior.CommandHandler$
java.lang.Object
org.apache.pekko.persistence.typed.scaladsl.EventSourcedBehavior.CommandHandler$
- Enclosing interface:
- EventSourcedBehavior<Command,
Event, State>
The
CommandHandler defines how to act on commands. A CommandHandler is
a function:
(State, Command) => Effect[Event, State]
The CommandHandler#command is useful for simple commands that don't need the state
and context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventSourcedBehavior.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