Class EventSourcedBehavior.CommandHandler$

  • Enclosing interface:
    EventSourcedBehavior<Command,​Event,​State>

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

    • 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.
      • 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,​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.

        Parameters:
        commandHandler - (undocumented)
        Returns:
        (undocumented)