final case class JournalMigrator(profile: JdbcProfile)(implicit system: ActorSystem) extends AutoCloseable with Product with Serializable
This will help migrate the legacy journal data onto the new journal 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 migrate() has completed, to release that pool.
- system
the actor system
- Source
- JournalMigrator.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JournalMigrator
- Serializable
- Product
- Equals
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new JournalMigrator(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
- JournalMigrator → AutoCloseable
- implicit val ec: ExecutionContextExecutor
- 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 migrate(): Future[Done]
write all legacy events into the new journal tables applying the proper serialization
- 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()