class AbstractPersistentEntityRegistry extends PersistentEntityRegistry
Provides shared functionality for implementing a persistent entity registry.
Akka persistence plugins can extend this to implement a custom registry.
- Alphabetic
- By Inheritance
- AbstractPersistentEntityRegistry
- PersistentEntityRegistry
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AbstractPersistentEntityRegistry(system: ActorSystem)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from AbstractPersistentEntityRegistry to any2stringadd[AbstractPersistentEntityRegistry] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (AbstractPersistentEntityRegistry, B)
- Implicit
- This member is added by an implicit conversion from AbstractPersistentEntityRegistry to ArrowAssoc[AbstractPersistentEntityRegistry] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
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()
-
def
ensuring(cond: (AbstractPersistentEntityRegistry) ⇒ Boolean, msg: ⇒ Any): AbstractPersistentEntityRegistry
- Implicit
- This member is added by an implicit conversion from AbstractPersistentEntityRegistry to Ensuring[AbstractPersistentEntityRegistry] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (AbstractPersistentEntityRegistry) ⇒ Boolean): AbstractPersistentEntityRegistry
- Implicit
- This member is added by an implicit conversion from AbstractPersistentEntityRegistry to Ensuring[AbstractPersistentEntityRegistry] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): AbstractPersistentEntityRegistry
- Implicit
- This member is added by an implicit conversion from AbstractPersistentEntityRegistry to Ensuring[AbstractPersistentEntityRegistry] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): AbstractPersistentEntityRegistry
- Implicit
- This member is added by an implicit conversion from AbstractPersistentEntityRegistry to Ensuring[AbstractPersistentEntityRegistry] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
eventStream[Event <: AggregateEvent[Event]](aggregateTag: AggregateEventTag[Event], fromOffset: Offset): Source[EventStreamElement[Event], NotUsed]
A stream of the persistent events that have the given
aggregateTag, e.g.A stream of the persistent events that have the given
aggregateTag, e.g. all persistent events of allOrderentities.The type of the offset is journal dependent, some journals use time-based UUID offsets, while others use sequence numbers. The passed in
fromOffsetmust either be akka.persistence.query.NoOffset, or an offset that has previously been produced by this journal.The stream will begin with events starting after
fromOffset. To resume an event stream, store theOffsetcorresponding to the most recently processedEvent, and pass that back as the value forfromOffsetto start the stream from events following that one.- Definition Classes
- AbstractPersistentEntityRegistry → PersistentEntityRegistry
- Exceptions thrown
IllegalArgumentExceptionIf thefromOffsettype is not supported by this journal.
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from AbstractPersistentEntityRegistry to StringFormat[AbstractPersistentEntityRegistry] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
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
-
val
journalPluginId: String
- Attributes
- protected
-
val
name: Option[String]
- Attributes
- protected
-
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()
-
val
queryPluginId: Option[String]
- Attributes
- protected
-
def
refFor[P <: PersistentEntity](entityId: String)(implicit arg0: ClassTag[P]): PersistentEntityRef[refFor.P.Command]
Retrieve a com.lightbend.lagom.scaladsl.persistence.PersistentEntityRef for a given com.lightbend.lagom.scaladsl.persistence.PersistentEntity class and identifier.
Retrieve a com.lightbend.lagom.scaladsl.persistence.PersistentEntityRef for a given com.lightbend.lagom.scaladsl.persistence.PersistentEntity class and identifier. Commands are sent to a
PersistentEntityusing aPersistentEntityRef.- Definition Classes
- AbstractPersistentEntityRegistry → PersistentEntityRegistry
-
def
register(entityFactory: ⇒ PersistentEntity): Unit
At system startup all com.lightbend.lagom.scaladsl.persistence.PersistentEntity classes must be registered with this method.
At system startup all com.lightbend.lagom.scaladsl.persistence.PersistentEntity classes must be registered with this method.
The
entityFactorywill be called when a new entity instance is to be created. That will happen in another thread, so theentityFactorymust be thread-safe, e.g. not close over shared mutable state that is not thread-safe.- Definition Classes
- AbstractPersistentEntityRegistry → PersistentEntityRegistry
-
val
snapshotPluginId: String
- Attributes
- protected
-
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()
-
def
→[B](y: B): (AbstractPersistentEntityRegistry, B)
- Implicit
- This member is added by an implicit conversion from AbstractPersistentEntityRegistry to ArrowAssoc[AbstractPersistentEntityRegistry] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc