Class DurableStateBehavior.CommandHandler$
- java.lang.Object
-
- akka.persistence.typed.state.scaladsl.DurableStateBehavior.CommandHandler$
-
- Enclosing interface:
- DurableStateBehavior<Command,State>
public static class DurableStateBehavior.CommandHandler$ extends java.lang.ObjectTheCommandHandlerdefines how to act on commands. ACommandHandleris a function:(State, Command) => Effect[State]The
CommandHandler#commandis useful for simple commands that don't need the state and context.
-
-
Field Summary
Fields Modifier and Type Field Description static DurableStateBehavior.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,State>
scala.Function2<State,Command,Effect<State>>command(scala.Function1<Command,Effect<State>> commandHandler)Convenience for simple commands that don't need the state and context.
-
-
-
Field Detail
-
MODULE$
public static final DurableStateBehavior.CommandHandler$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-