Packages

object CommandHandler

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.

Source
EventSourcedBehavior.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CommandHandler
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def command[Command, Event, State](commandHandler: (Command) ⇒ Effect[Event, State]): (State, Command) ⇒ Effect[Event, State]

    Convenience for simple commands that don't need the state and context.

    Convenience for simple commands that don't need the state and context.

    See also

    Effect for possible effects of a command.