object PersistenceId
- Source
- PersistenceId.scala
- Alphabetic
- By Inheritance
- PersistenceId
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
 
-    val DefaultSeparator: StringDefault separator character used for concatenating a typeHintwithentityIdto construct unique persistenceId.
-    def apply(entityTypeHint: String, entityId: String, separator: String): PersistenceIdConstructs a PersistenceId from the given entityTypeHintandentityIdby concatenating them with theseparator.Constructs a PersistenceId from the given entityTypeHintandentityIdby concatenating them with theseparator.Cluster Sharding is often used together with EventSourcedBehaviorfor the entities. ThePersistenceIdof theEventSourcedBehaviorcan typically be constructed with:PersistenceId(entityContext.entityTypeKey.name, entityContext.entityId) That format of the PersistenceIdis not mandatory and only provided as a convenience of a "standardized" format.The default separator |is used by theapplythat doesn't take aseparatorparameter.- Exceptions thrown
- java.lang.IllegalArgumentExceptionif the- entityTypeHintor- entityIdcontains- separator
 
-    def apply(entityTypeHint: String, entityId: String): PersistenceIdConstructs a PersistenceId from the given entityTypeHintandentityIdby concatenating them with|separator.Constructs a PersistenceId from the given entityTypeHintandentityIdby concatenating them with|separator.Cluster Sharding is often used together with EventSourcedBehaviorfor the entities. ThePersistenceIdof theEventSourcedBehaviorcan typically be constructed with:PersistenceId(entityContext.entityTypeKey.name, entityContext.entityId) That format of the PersistenceIdis not mandatory and only provided as a convenience of a "standardized" format.Another separator can be defined by using the applythat takes aseparatorparameter.- Exceptions thrown
- java.lang.IllegalArgumentExceptionif the- entityTypeHintor- entityIdcontains- |
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-    def extractEntityId(id: String): StringExtract the entityIdfrom a persistence id String with the default separator|.Extract the entityIdfrom a persistence id String with the default separator|. If the separator|is not found it return theid.
-    def extractEntityType(id: String): StringExtract the entityTypeHintfrom a persistence id String with the default separator|.Extract the entityTypeHintfrom a persistence id String with the default separator|. If the separator|is not found it return the empty String ("").
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @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
- @HotSpotIntrinsicCandidate() @native()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
 
-    def of(entityTypeHint: String, entityId: String, separator: String): PersistenceIdConstructs a PersistenceId from the given entityTypeHintandentityIdby concatenating them with theseparator.Constructs a PersistenceId from the given entityTypeHintandentityIdby concatenating them with theseparator.Cluster Sharding is often used together with EventSourcedBehaviorfor the entities. ThePersistenceIdof theEventSourcedBehaviorcan typically be constructed with:PersistenceId.of(entityContext.getEntityTypeKey().name(), entityContext.getEntityId()) That format of the PersistenceIdis not mandatory and only provided as a convenience of a "standardized" format.The default separator |is used by theapplythat doesn't take aseparatorparameter.- Exceptions thrown
- java.lang.IllegalArgumentExceptionif the- entityTypeHintor- entityIdcontains- separator
 
-    def of(entityTypeHint: String, entityId: String): PersistenceIdConstructs a PersistenceId from the given entityTypeHintandentityIdby concatenating them with|separator.Constructs a PersistenceId from the given entityTypeHintandentityIdby concatenating them with|separator.Cluster Sharding is often used together with EventSourcedBehaviorfor the entities. ThePersistenceIdof theEventSourcedBehaviorcan typically be constructed with:PersistenceId.of(entityContext.getEntityTypeKey().name(), entityContext.getEntityId()) That format of the PersistenceIdis not mandatory and only provided as a convenience of a "standardized" format.Another separator can be defined by using the PersistenceId.ofthat takes aseparatorparameter.- Exceptions thrown
- java.lang.IllegalArgumentExceptionif the- entityTypeHintor- entityIdcontains- |
 
-    def ofUniqueId(id: String): PersistenceIdConstructs a PersistenceId with idas the full unique identifier.
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toString(): String- Definition Classes
- AnyRef → Any
 
-  def unapply(persistenceId: PersistenceId): Option[(String, String)]
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])