Package akka.persistence.typed.javadsl
Class PersistentFSMMigration
- java.lang.Object
-
- akka.persistence.typed.javadsl.PersistentFSMMigration
-
public class PersistentFSMMigration extends java.lang.Object
Helper functions for migration from PersistentFSM to Persistence Typed
-
-
Constructor Summary
Constructors Constructor Description PersistentFSMMigration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <State> SnapshotAdapter<State>
snapshotAdapter(Function3<java.lang.String,java.lang.Object,java.util.Optional<java.time.Duration>,State> adapt)
Create a snapshot adapter that will adapt snapshots created by a PersistentFSM into the correct State type of aEventSourcedBehavior
-
-
-
Method Detail
-
snapshotAdapter
public static <State> SnapshotAdapter<State> snapshotAdapter(Function3<java.lang.String,java.lang.Object,java.util.Optional<java.time.Duration>,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 theState
that should be given to the theEventSourcedBehavior
- Returns:
- A
SnapshotAdapter
to be used with aEventSourcedBehavior
-
-