case class SnapshotMigrator(profile: JdbcProfile)(implicit system: ActorSystem) extends AutoCloseable with Product with Serializable
This will help migrate the legacy snapshot data onto the new snapshot schema with the appropriate serialization
The migrator opens its own database connection pool unless use-shared-db is configured. Call close() once
the Future returned by migrateLatest() or migrateAll() has
completed, to release that pool.
- system
the actor system
- Source
- SnapshotMigrator.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SnapshotMigrator
- Serializable
- Product
- Equals
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SnapshotMigrator(profile: JdbcProfile)(implicit system: ActorSystem)
- system
the actor system
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
Closes the database that was opened for this migrator.
Closes the database that was opened for this migrator. It is a no-op when the database is shared (configured with
use-shared-db), since that one is owned by the actor system.- Definition Classes
- SnapshotMigrator → AutoCloseable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val log: Logger
- def migrateAll(): Future[Done]
migrate all the legacy snapshot schema data into the new snapshot schema
- def migrateLatest(): Future[Done]
migrate the latest snapshot data
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val profile: JdbcProfile
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()