Class DurableStateBehavior.CommandHandler$

  • Enclosing interface:
    DurableStateBehavior<Command,​State>

    public static class DurableStateBehavior.CommandHandler$
    extends java.lang.Object
    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.

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CommandHandler$

        public CommandHandler$()
    • Method Detail

      • command

        public <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.