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]) @HotSpotIntrinsicCandidate() @native()
  9. def concat(entityTypeHint: String, entityId: String, separator: String): String

    Constructs a persistence id String from the given entityTypeHint and entityId by concatenating them with the separator.

    Constructs a persistence id String from the given entityTypeHint and entityId by concatenating them with the separator.

    Exceptions thrown

    IllegalArgumentException if the entityTypeHint or entityId contains separator

  10. def concat(entityTypeHint: String, entityId: String): String

    Constructs a persistence id String from the given entityTypeHint and entityId by concatenating them with | separator.

    Constructs a persistence id String from the given entityTypeHint and entityId by concatenating them with | separator.

    Exceptions thrown

    IllegalArgumentException if the entityTypeHint or entityId contains |

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. 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.

  14. 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 ("").

  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  21. 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

  22. 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 |

  23. def ofUniqueId(id: String): PersistenceId

    Constructs a PersistenceId with id as the full unique identifier.

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def unapply(persistenceId: PersistenceId): Option[(String, String)]
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. 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

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped