Packages

object PersistenceId

Source
PersistenceId.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PersistenceId
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. val DefaultSeparator: String

    Default separator character used for concatenating a typeHint with entityId to construct unique persistenceId.

    Default separator character used for concatenating a typeHint with entityId to construct unique persistenceId. This must be same as in Lagom's scaladsl.PersistentEntity, for compatibility. No separator is used in Lagom's javadsl.PersistentEntity so for compatibility with that the "" separator must be used instead.

  5. def apply(entityTypeHint: String, entityId: String, separator: String): PersistenceId

    Constructs a PersistenceId from the given entityTypeHint and entityId by concatenating them with the separator.

    Constructs a PersistenceId from the given entityTypeHint and entityId by concatenating them with the separator.

    Cluster Sharding is often used together with EventSourcedBehavior for the entities. The PersistenceId of the EventSourcedBehavior can typically be constructed with:

    PersistenceId(entityContext.entityTypeKey.name, entityContext.entityId)

    That format of the PersistenceId is not mandatory and only provided as a convenience of a "standardized" format.

    The default separator | is used by the apply that doesn't take a separator parameter.

    The | separator is also used in Lagom's scaladsl.PersistentEntity but no separator is used in Lagom's javadsl.PersistentEntity. For compatibility with Lagom's javadsl.PersistentEntity you should use "" as the separator.

    Exceptions thrown

    IllegalArgumentException if the entityTypeHint or entityId contains separator

  6. def apply(entityTypeHint: String, entityId: String): PersistenceId

    Constructs a PersistenceId from the given entityTypeHint and entityId by concatenating them with | separator.

    Constructs a PersistenceId from the given entityTypeHint and entityId by concatenating them with | separator.

    Cluster Sharding is often used together with EventSourcedBehavior for the entities. The PersistenceId of the EventSourcedBehavior can typically be constructed with:

    PersistenceId(entityContext.entityTypeKey.name, entityContext.entityId)

    That format of the PersistenceId is not mandatory and only provided as a convenience of a "standardized" format.

    Another separator can be defined by using the apply that takes a separator parameter.

    The | separator is also used in Lagom's scaladsl.PersistentEntity but no separator is used in Lagom's javadsl.PersistentEntity. For compatibility with Lagom's javadsl.PersistentEntity you should use "" as the separator.

    Exceptions thrown

    IllegalArgumentException if the entityTypeHint or entityId contains |

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def extractEntityId(id: String): String

    Extract the entityId from a persistence id String with the default separator |.

    Extract the entityId from a persistence id String with the default separator |. If the separator | is not found it return the id.

  12. def extractEntityType(id: String): String

    Extract the entityTypeHint from a persistence id String with the default separator |.

    Extract the entityTypeHint from a persistence id String with the default separator |. If the separator | is not found it return the empty String ("").

  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def of(entityTypeHint: String, entityId: String, separator: String): PersistenceId

    Constructs a PersistenceId from the given entityTypeHint and entityId by concatenating them with the separator.

    Constructs a PersistenceId from the given entityTypeHint and entityId by concatenating them with the separator.

    Cluster Sharding is often used together with EventSourcedBehavior for the entities. The PersistenceId of the EventSourcedBehavior can typically be constructed with:

    PersistenceId.of(entityContext.getEntityTypeKey().name(), entityContext.getEntityId())

    That format of the PersistenceId is not mandatory and only provided as a convenience of a "standardized" format.

    The default separator | is used by the apply that doesn't take a separator parameter.

    The | separator is also used in Lagom's scaladsl.PersistentEntity but no separator is used in Lagom's javadsl.PersistentEntity. For compatibility with Lagom's javadsl.PersistentEntity you should use "" as the separator.

    Exceptions thrown

    IllegalArgumentException if the entityTypeHint or entityId contains separator

  20. def of(entityTypeHint: String, entityId: String): PersistenceId

    Constructs a PersistenceId from the given entityTypeHint and entityId by concatenating them with | separator.

    Constructs a PersistenceId from the given entityTypeHint and entityId by concatenating them with | separator.

    Cluster Sharding is often used together with EventSourcedBehavior for the entities. The PersistenceId of the EventSourcedBehavior can typically be constructed with:

    PersistenceId.of(entityContext.getEntityTypeKey().name(), entityContext.getEntityId())

    That format of the PersistenceId is not mandatory and only provided as a convenience of a "standardized" format.

    Another separator can be defined by using the PersistenceId.of that takes a separator parameter.

    The | separator is also used in Lagom's scaladsl.PersistentEntity but no separator is used in Lagom's javadsl.PersistentEntity. For compatibility with Lagom's javadsl.PersistentEntity you should use "" as the separator.

    Exceptions thrown

    IllegalArgumentException if the entityTypeHint or entityId contains |

  21. def ofUniqueId(id: String): PersistenceId

    Constructs a PersistenceId with id as the full unique identifier.

  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. def unapply(persistenceId: PersistenceId): Option[(String, String)]
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped