Package akka.persistence.typed.scaladsl
Class EventSourcedBehavior.CommandHandler$
- java.lang.Object
-
- akka.persistence.typed.scaladsl.EventSourcedBehavior.CommandHandler$
-
- Enclosing interface:
- EventSourcedBehavior<Command,Event,State>
public static class EventSourcedBehavior.CommandHandler$ extends java.lang.Object
TheCommandHandler
defines how to act on commands. ACommandHandler
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
Fields Modifier and Type Field Description static EventSourcedBehavior.CommandHandler$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description CommandHandler$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Command,Event,State>
scala.Function2<State,Command,Effect<Event,State>>command(scala.Function1<Command,Effect<Event,State>> commandHandler)
Convenience for simple commands that don't need the state and context.
-
-
-
Field Detail
-
MODULE$
public static final EventSourcedBehavior.CommandHandler$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-