Class/Object

com.lightbend.lagom.scaladsl.persistence.PersistentEntity

Actions

Related Docs: object Actions | package PersistentEntity

Permalink

class Actions extends (State) ⇒ Actions

Actions consists of functions to process incoming commands and persisted events. Actions is an immutable class.

Source
PersistentEntity.scala
Linear Supertypes
(State) ⇒ Actions, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Actions
  2. Function1
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Actions(eventHandler: EventHandler, commandHandlers: Map[Class[_], CommandHandler])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Actions to any2stringadd[Actions] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Actions, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Actions to ArrowAssoc[Actions] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def andThen[A](g: (Actions) ⇒ A): (State) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def apply(state: State): Actions

    Permalink

    Extends State => Actions so that it can be used directly in PersistentEntity#behavior when there is only one set of actions independent of state.

    Extends State => Actions so that it can be used directly in PersistentEntity#behavior when there is only one set of actions independent of state.

    Definition Classes
    Actions → Function1
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val commandHandlers: Map[Class[_], CommandHandler]

    Permalink
  11. def compose[A](g: (A) ⇒ State): (A) ⇒ Actions

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. def ensuring(cond: (Actions) ⇒ Boolean, msg: ⇒ Any): Actions

    Permalink
    Implicit information
    This member is added by an implicit conversion from Actions to Ensuring[Actions] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (Actions) ⇒ Boolean): Actions

    Permalink
    Implicit information
    This member is added by an implicit conversion from Actions to Ensuring[Actions] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): Actions

    Permalink
    Implicit information
    This member is added by an implicit conversion from Actions to Ensuring[Actions] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): Actions

    Permalink
    Implicit information
    This member is added by an implicit conversion from Actions to Ensuring[Actions] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. val eventHandler: EventHandler

    Permalink
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Actions to StringFormat[Actions] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def onCommand[C <: Command with ReplyType[Reply], Reply](handler: PartialFunction[(Command, CommandContext[Reply], State), Persist])(implicit arg0: ClassTag[C]): Actions

    Permalink

    Add a command handler.

    Add a command handler. For each command class the handler is a PartialFunction. Adding a handler for a command class that was previously defined will replace the previous handler for that class. It is possible to combine handlers from two different Actions with #orElse method.

  28. def onEvent(handler: EventHandler): Actions

    Permalink

    Add an event handler.

    Add an event handler. Each handler is a PartialFunction and they will be tried in the order they were added, i.e. they are combined with orElse.

  29. def onReadOnlyCommand[C <: Command with ReplyType[Reply], Reply](handler: PartialFunction[(Command, ReadOnlyCommandContext[Reply], State), Unit])(implicit arg0: ClassTag[C]): Actions

    Permalink

    Add a command handler that will not persist any events.

    Add a command handler that will not persist any events. This is a convenience method to #onCommand. For each command class the handler is a PartialFunction. Adding a handler for a command class that was previously defined will replace the previous handler for that class. It is possible to combine handlers from two different Actions with #orElse method.

  30. def orElse(b: Actions): Actions

    Permalink

    Append eventHandler and commandHandlers from b to the handlers of this Actions.

    Append eventHandler and commandHandlers from b to the handlers of this Actions.

    Event handlers are combined with orElse of the partial functions.

    Command handlers for a specific command class that are defined in both b and this Actions will be combined with orElse of the partial functions.

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    Function1 → AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def [B](y: B): (Actions, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Actions to ArrowAssoc[Actions] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from (State) ⇒ Actions

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Actions to any2stringadd[Actions]

Inherited by implicit conversion StringFormat from Actions to StringFormat[Actions]

Inherited by implicit conversion Ensuring from Actions to Ensuring[Actions]

Inherited by implicit conversion ArrowAssoc from Actions to ArrowAssoc[Actions]

Ungrouped