trait EventSourcedEntityCreationContext extends EventSourcedContext with BehaviorContext
Creation context for EventSourcedEntity annotated entities.
This may be accepted as an argument to the constructor of an event sourced entity.
- Alphabetic
- By Inheritance
- EventSourcedEntityCreationContext
- BehaviorContext
- EventSourcedContext
- EntityContext
- Context
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
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.
- Definition Classes
- BehaviorContext
-
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
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()