Package akka.persistence.typed.scaladsl
Class PersistentFSMMigration$
- java.lang.Object
-
- akka.persistence.typed.scaladsl.PersistentFSMMigration$
-
public class PersistentFSMMigration$ extends java.lang.ObjectHelper functions for migration from PersistentFSM to Persistence Typed
-
-
Field Summary
Fields Modifier and Type Field Description static PersistentFSMMigration$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description PersistentFSMMigration$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <State> SnapshotAdapter<State>snapshotAdapter(scala.Function3<java.lang.String,java.lang.Object,scala.Option<scala.concurrent.duration.FiniteDuration>,State> adapt)Create a snapshot adapter that will adapt snapshots created by a PersistentFSM into the correct State type of aEventSourcedBehavior
-
-
-
Field Detail
-
MODULE$
public static final PersistentFSMMigration$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
snapshotAdapter
public <State> SnapshotAdapter<State> snapshotAdapter(scala.Function3<java.lang.String,java.lang.Object,scala.Option<scala.concurrent.duration.FiniteDuration>,State> adapt)
Create a snapshot adapter that will adapt snapshots created by a PersistentFSM into the correct State type of aEventSourcedBehavior- Parameters:
adapt- Takes in the state identifier, snapshot persisted by the PersistentFSM and the state timeout and returns theStatethat should be given to the theEventSourcedBehavior- Returns:
- A
SnapshotAdapterto be used with aEventSourcedBehavior
-
-