Class

akka.cluster.sharding.typed.javadsl

EventSourcedEntity

Related Doc: package javadsl

Permalink

abstract class EventSourcedEntity[Command, Event, State >: Null] extends EventSourcedBehavior[Command, Event, State]

Any Behavior can be used as a sharded entity actor, but the combination of sharding and persistent actors is very common and therefore this PersistentEntity class is provided as convenience.

It is a EventSourcedBehavior and is implemented in the same way. It selects the persistenceId automatically from the EntityTypeKey and entityId constructor parameters by using EntityTypeKey.persistenceIdFrom.

Source
EventSourcedEntity.scala
Linear Supertypes
EventSourcedBehavior[Command, Event, State], DeferredBehavior[Command], Behavior[Command], AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EventSourcedEntity
  2. EventSourcedBehavior
  3. DeferredBehavior
  4. Behavior
  5. AnyRef
  6. Any
Implicitly
  1. by BehaviorDecorators
  2. by BehaviorDecorators
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EventSourcedEntity(entityTypeKey: EntityTypeKey[Command], entityId: String, onPersistFailure: BackoffSupervisorStrategy)

    Permalink
  2. new EventSourcedEntity(entityTypeKey: EntityTypeKey[Command], entityId: String)

    Permalink

Abstract Value Members

  1. abstract def commandHandler(): CommandHandler[Command, Event, State]

    Permalink
    Attributes
    protected
    Definition Classes
    EventSourcedBehavior
  2. abstract def emptyState: State

    Permalink
    Attributes
    protected
    Definition Classes
    EventSourcedBehavior
  3. abstract def eventHandler(): EventHandler[State, Event]

    Permalink
    Attributes
    protected
    Definition Classes
    EventSourcedBehavior

Concrete 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 EventSourcedEntity[Command, Event, State] to any2stringadd[EventSourcedEntity[Command, Event, State]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (EventSourcedEntity[Command, Event, State], B)

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

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def Effect: EffectFactories[Event, State]

    Permalink
    Attributes
    protected
    Definition Classes
    EventSourcedBehavior
  7. def apply(context: TypedActorContext[Command]): Behavior[Command]

    Permalink
    Definition Classes
    EventSourcedBehavior → DeferredBehavior
    Annotations
    @InternalApi()
  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. def ensuring(cond: (EventSourcedEntity[Command, Event, State]) ⇒ Boolean, msg: ⇒ Any): EventSourcedEntity[Command, Event, State]

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

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

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from EventSourcedEntity[Command, Event, State] to Ensuring[EventSourcedEntity[Command, Event, State]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. val entityId: String

    Permalink
  15. val entityTypeKey: EntityTypeKey[Command]

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def eventAdapter(): EventAdapter[Event, _]

    Permalink
    Definition Classes
    EventSourcedBehavior
  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 EventSourcedEntity[Command, Event, State] to StringFormat[EventSourcedEntity[Command, Event, State]] 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 narrow[U <: Command]: Behavior[U]

    Permalink
    Definition Classes
    Behavior
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def newCommandHandlerBuilder(): CommandHandlerBuilder[Command, Event, State]

    Permalink
    Attributes
    protected
    Definition Classes
    EventSourcedBehavior
  27. final def newEventHandlerBuilder(): EventHandlerBuilder[State, Event]

    Permalink
    Attributes
    protected
    Definition Classes
    EventSourcedBehavior
  28. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  30. def onRecoveryCompleted(state: State): Unit

    Permalink
    Definition Classes
    EventSourcedBehavior
  31. def onRecoveryFailure(failure: Throwable): Unit

    Permalink
    Definition Classes
    EventSourcedBehavior
  32. def onSnapshot(meta: SnapshotMetadata, result: Optional[Throwable]): Unit

    Permalink
    Definition Classes
    EventSourcedBehavior
  33. final def orElse(that: Behavior[Command]): Behavior[Command]

    Permalink
    Definition Classes
    Behavior
  34. val persistenceId: PersistenceId

    Permalink
    Definition Classes
    EventSourcedBehavior
  35. def shouldSnapshot(state: State, event: Event, sequenceNr: Long): Boolean

    Permalink
    Definition Classes
    EventSourcedBehavior
  36. def snapshotEvery(): Long

    Permalink
    Definition Classes
    EventSourcedBehavior
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def tagsFor(event: Event): Set[String]

    Permalink
    Definition Classes
    EventSourcedBehavior
  39. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def [B](y: B): (EventSourcedEntity[Command, Event, State], B)

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

Shadowed Implicit Value Members

  1. val behavior: Behavior[Command]

    Permalink
    Implicit information
    This member is added by an implicit conversion from EventSourcedEntity[Command, Event, State] to BehaviorDecorators[Command] performed by method BehaviorDecorators in akka.actor.typed.Behavior.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (eventSourcedEntity: BehaviorDecorators[Command]).behavior
    Definition Classes
    BehaviorDecorators
  2. val behavior: Behavior[Command]

    Permalink
    Implicit information
    This member is added by an implicit conversion from EventSourcedEntity[Command, Event, State] to BehaviorDecorators[Command] performed by method BehaviorDecorators in akka.actor.typed.Behavior.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (eventSourcedEntity: BehaviorDecorators[Command]).behavior
    Definition Classes
    BehaviorDecorators
  3. def widen[U](matcher: PartialFunction[U, Command]): Behavior[U]

    Permalink
    Implicit information
    This member is added by an implicit conversion from EventSourcedEntity[Command, Event, State] to BehaviorDecorators[Command] performed by method BehaviorDecorators in akka.actor.typed.Behavior.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (eventSourcedEntity: BehaviorDecorators[Command]).widen(matcher)
    Definition Classes
    BehaviorDecorators
  4. def widen[U](matcher: PartialFunction[U, Command]): Behavior[U]

    Permalink
    Implicit information
    This member is added by an implicit conversion from EventSourcedEntity[Command, Event, State] to BehaviorDecorators[Command] performed by method BehaviorDecorators in akka.actor.typed.Behavior.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (eventSourcedEntity: BehaviorDecorators[Command]).widen(matcher)
    Definition Classes
    BehaviorDecorators

Inherited from EventSourcedBehavior[Command, Event, State]

Inherited from DeferredBehavior[Command]

Inherited from Behavior[Command]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion BehaviorDecorators from EventSourcedEntity[Command, Event, State] to BehaviorDecorators[Command]

Inherited by implicit conversion BehaviorDecorators from EventSourcedEntity[Command, Event, State] to BehaviorDecorators[Command]

Inherited by implicit conversion any2stringadd from EventSourcedEntity[Command, Event, State] to any2stringadd[EventSourcedEntity[Command, Event, State]]

Inherited by implicit conversion StringFormat from EventSourcedEntity[Command, Event, State] to StringFormat[EventSourcedEntity[Command, Event, State]]

Inherited by implicit conversion Ensuring from EventSourcedEntity[Command, Event, State] to Ensuring[EventSourcedEntity[Command, Event, State]]

Inherited by implicit conversion ArrowAssoc from EventSourcedEntity[Command, Event, State] to ArrowAssoc[EventSourcedEntity[Command, Event, State]]

Ungrouped