Packages

class EventsByTagMigration extends AnyRef

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

Instance Constructors

  1. new EventsByTagMigration(systemProvider: ClassicActorSystemProvider, pluginConfigPath: String = "akka.persistence.cassandra")

    pluginConfigPath

    The config namespace where the plugin is configured, default is akka.persistence.cassandra

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. def addTagsColumn(): Future[Done]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  7. def createTables(): Future[Done]
  8. implicit val ec: ExecutionContext
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def migratePidsToTagViews(pids: Seq[PersistenceId], periodicFlush: Int = 0, flushTimeout: Timeout = Timeout(30.seconds)): Future[Done]

    Migrates the given persistenceIds from the messages table to the new tags_view table.

    Migrates the given persistenceIds from the messages table to the new tags_view table. tag_view table must exist before calling this and can be created manually or via [createTagsTable]

    This is useful if there there is a more efficient way of getting all the persistenceIds than [CassandraReadJournal.currentPersistenceIds] which does a distinct query on the messages table.

    This can also be used to do partial migrations e.g. test a persistenceId in production before migrating everything.

    It is recommended you use this if the messages table is large.

    Events are batched with the given periodicFlush. By default the value equals configured events-by-tag.max-message-batch-size.

    pids

    PersistenceIds to migrate

    returns

    A Future that completes when the migration is complete

  15. def migrateToTagViews(periodicFlush: Int = 0, filter: (String) => Boolean = _ => true, flushTimeout: Timeout = Timeout(30.seconds)): Future[Done]

    Migrates the entire messages table to the the new tag_views table.

    Migrates the entire messages table to the the new tag_views table.

    Before running this you must run the migration of the all_persistence_ids table as described in https://doc.akka.io/docs/akka-persistence-cassandra/current/migrations.html#all-persistenceIds-query

    Uses [CassandraReadJournal.currentPersistenceIds] to find all persistenceIds. Note that this is a very inefficient cassandra query so might timeout. If so the version of this method can be used where the persistenceIds are provided.

    Persistence ids can be excluded (e.g. useful if you know certain persistenceIds don't use tags.

    Events are batched with the given periodicFlush. By default the value equals configured events-by-tag.max-message-batch-size.

    returns

    A Future that completes when the migration is complete.

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  19. lazy val session: CassandraSession
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. 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