trait BehaviorContext extends EventSourcedContext

Superinterface of all contexts that allow changing the current entities behavior behavior.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BehaviorContext
  2. EventSourcedContext
  3. EntityContext
  4. Context
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def become(behaviors: <repeated...>[AnyRef]): Unit

    Become the new behavior specified by the given behavior objects.

    Become the new behavior specified by the given behavior objects.

    More than one object may be passed to allow composing behaviors from multiple objects. If two objects define a handler for the same event or command, the one that comes earlier in the supplied array of objects is the one that is used.

    Note that event and snapshot handlers, where handlers are matched on a given behavior object by specificity (ie, a handler for a child class will take precedence over a handler for a parent class), this precedence is not honored across multiple behaviors. So, if the first behavior defines an event handler for Object, that handler will always win, regardless of what handlers are defined on subsequent behaviors.

    behaviors

    The behaviors to use for subsequent commands and events.

  2. abstract def entityId(): String

    The id of the entity that this context is for.

    The id of the entity that this context is for.

    returns

    The entity id.

    Definition Classes
    EntityContext
  3. abstract def serviceCallFactory(): ServiceCallFactory

    Get the service call factory for this stateful service.

    Get the service call factory for this stateful service.

    Definition Classes
    Context

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from EventSourcedContext

Inherited from EntityContext

Inherited from Context

Inherited from AnyRef

Inherited from Any

Ungrouped