Packages

class R2dbcDurableStateStore[A] extends DurableStateUpdateWithChangeEventStore[A] with DurableStateStoreBySliceQuery[A] with DurableStateStorePagedPersistenceIdsQuery[A]

Linear Supertypes
DurableStateStorePagedPersistenceIdsQuery[A], DurableStateStoreBySliceQuery[A], DurableStateUpdateWithChangeEventStore[A], DurableStateUpdateStore[A], DurableStateStore[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. R2dbcDurableStateStore
  2. DurableStateStorePagedPersistenceIdsQuery
  3. DurableStateStoreBySliceQuery
  4. DurableStateUpdateWithChangeEventStore
  5. DurableStateUpdateStore
  6. DurableStateStore
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new R2dbcDurableStateStore(system: ExtendedActorSystem, config: Config, cfgPath: String)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def changesBySlices(entityType: String, minSlice: Int, maxSlice: Int, offset: Offset): Source[DurableStateChange[A], NotUsed]
    Definition Classes
    R2dbcDurableStateStore → DurableStateStoreBySliceQuery
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  7. def currentChangesBySlices(entityType: String, minSlice: Int, maxSlice: Int, offset: Offset): Source[DurableStateChange[A], NotUsed]
    Definition Classes
    R2dbcDurableStateStore → DurableStateStoreBySliceQuery
  8. def currentPersistenceIds(): Source[String, NotUsed]
  9. def currentPersistenceIds(entityType: String, afterId: Option[String], limit: Long): Source[String, NotUsed]

    Get the current persistence ids.

    Get the current persistence ids.

    Note: to reuse existing index, the actual query filters entity types based on persistence_id column and sql LIKE operator. Hence the persistenceId must start with an entity type followed by default separator ("|") from akka.persistence.typed.PersistenceId.

    entityType

    The entity type name.

    afterId

    The ID to start returning results from, or None to return all ids. This should be an id returned from a previous invocation of this command. Callers should not assume that ids are returned in sorted order.

    limit

    The maximum results to return. Use Long.MaxValue to return all results. Must be greater than zero.

    returns

    A source containing all the persistence ids, limited as specified.

  10. def currentPersistenceIds(afterId: Option[String], limit: Long): Source[String, NotUsed]

    Note: If you have configured custom-table this query will look in both the default table and the custom tables.

    Note: If you have configured custom-table this query will look in both the default table and the custom tables. If you are only interested in ids for a specific entity type it's more efficient to use currentPersistenceIds with entityType parameter.

    Definition Classes
    R2dbcDurableStateStore → DurableStateStorePagedPersistenceIdsQuery
  11. def deleteObject(persistenceId: String, revision: Long, changeEvent: Any): Future[Done]

    Delete the value, which will fail with IllegalStateException if the existing stored revision + 1 isn't equal to the given revision.

    Delete the value, which will fail with IllegalStateException if the existing stored revision + 1 isn't equal to the given revision. This optimistic locking check can be disabled with configuration assert-single-writer. The stored revision for the persistenceId is updated and next call to getObject will return the revision, but with no value.

    If the given revision is 0 it will fully delete the value and revision from the database without any optimistic locking check. Next call to getObject will then return revision 0 and no value.

    The changeEvent is written to the event journal in the same transaction as the DurableState upsert. Same persistenceId is used in the journal and the revision is used as sequenceNr.

    Definition Classes
    R2dbcDurableStateStore → DurableStateUpdateWithChangeEventStore
  12. def deleteObject(persistenceId: String, revision: Long): Future[Done]

    Delete the value, which will fail with IllegalStateException if the existing stored revision + 1 isn't equal to the given revision.

    Delete the value, which will fail with IllegalStateException if the existing stored revision + 1 isn't equal to the given revision. This optimistic locking check can be disabled with configuration assert-single-writer. The stored revision for the persistenceId is updated and next call to getObject will return the revision, but with no value.

    If the given revision is 0 it will fully delete the value and revision from the database without any optimistic locking check. Next call to getObject will then return revision 0 and no value.

    Definition Classes
    R2dbcDurableStateStore → DurableStateUpdateStore
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. def getObject(persistenceId: String): Future[GetObjectResult[A]]
    Definition Classes
    R2dbcDurableStateStore → DurableStateStore
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. def sliceForPersistenceId(persistenceId: String): Int
    Definition Classes
    R2dbcDurableStateStore → DurableStateStoreBySliceQuery
  23. def sliceRanges(numberOfRanges: Int): Seq[Range]
    Definition Classes
    R2dbcDurableStateStore → DurableStateStoreBySliceQuery
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def upsertObject(persistenceId: String, revision: Long, value: A, tag: String, changeEvent: Any): Future[Done]

    Insert the value if revision is 1, which will fail with IllegalStateException if there is already a stored value for the given persistenceId.

    Insert the value if revision is 1, which will fail with IllegalStateException if there is already a stored value for the given persistenceId. Otherwise update the value, which will fail with IllegalStateException if the existing stored revision + 1 isn't equal to the given revision. This optimistic locking check can be disabled with configuration assert-single-writer.

    The changeEvent is written to the event journal in the same transaction as the DurableState upsert. Same persistenceId is used in the journal and the revision is used as sequenceNr.

    Definition Classes
    R2dbcDurableStateStore → DurableStateUpdateWithChangeEventStore
  27. def upsertObject(persistenceId: String, revision: Long, value: A, tag: String): Future[Done]

    Insert the value if revision is 1, which will fail with IllegalStateException if there is already a stored value for the given persistenceId.

    Insert the value if revision is 1, which will fail with IllegalStateException if there is already a stored value for the given persistenceId. Otherwise update the value, which will fail with IllegalStateException if the existing stored revision + 1 isn't equal to the given revision. This optimistic locking check can be disabled with configuration assert-single-writer.

    Definition Classes
    R2dbcDurableStateStore → DurableStateUpdateStore
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def deleteObject(persistenceId: String): Future[Done]
    Definition Classes
    R2dbcDurableStateStore → DurableStateUpdateStore
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) Use the deleteObject overload with revision instead.

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

    (Since version 9)

Inherited from DurableStateStorePagedPersistenceIdsQuery[A]

Inherited from DurableStateStoreBySliceQuery[A]

Inherited from DurableStateUpdateWithChangeEventStore[A]

Inherited from DurableStateUpdateStore[A]

Inherited from DurableStateStore[A]

Inherited from AnyRef

Inherited from Any

Ungrouped