Class PersistenceInit$
- java.lang.Object
-
- akka.persistence.testkit.scaladsl.PersistenceInit$
-
public class PersistenceInit$ extends java.lang.Object
Test utility to initialize persistence plugins. Useful when initialization order or coordination is needed. For example to avoid creating tables concurrently.
-
-
Field Summary
Fields Modifier and Type Field Description static PersistenceInit$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description PersistenceInit$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.concurrent.Future<Done>
initializeDefaultPlugins(ClassicActorSystemProvider system, scala.concurrent.duration.FiniteDuration timeout)
Initialize the default journal and snapshot plugins.scala.concurrent.Future<Done>
initializePlugins(ClassicActorSystemProvider system, java.lang.String journalPluginId, java.lang.String snapshotPluginId, scala.concurrent.duration.FiniteDuration timeout)
Initialize the given journal and snapshot plugins.
-
-
-
Field Detail
-
MODULE$
public static final PersistenceInit$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
initializeDefaultPlugins
public scala.concurrent.Future<Done> initializeDefaultPlugins(ClassicActorSystemProvider system, scala.concurrent.duration.FiniteDuration timeout)
Initialize the default journal and snapshot plugins.- Returns:
- a
Future
that is completed when the initialization has completed
-
initializePlugins
public scala.concurrent.Future<Done> initializePlugins(ClassicActorSystemProvider system, java.lang.String journalPluginId, java.lang.String snapshotPluginId, scala.concurrent.duration.FiniteDuration timeout)
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
-
-