object PersistenceInit
Test utility to initialize persistence plugins. Useful when initialization order or coordination is needed. For example to avoid creating tables concurrently.
- Source
- PersistenceInit.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PersistenceInit
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def initializeDefaultPlugins(system: ClassicActorSystemProvider, timeout: FiniteDuration): Future[Done]
Initialize the default journal and snapshot plugins.
Initialize the default journal and snapshot plugins.
- returns
a
Future
that is completed when the initialization has completed
- def initializePlugins(system: ClassicActorSystemProvider, journalPluginId: String, snapshotPluginId: String, timeout: FiniteDuration): Future[Done]
Initialize the given journal and snapshot plugins.
Initialize the given journal and snapshot plugins.
The
snapshotPluginId
can be empty (""
) if snapshot plugin isn't used.- returns
a
Future
that is completed when the initialization has completed