Interface SnapshotAdapter<State>
- Type Parameters:
State- The state type of theEventSourcedBehavior
public interface SnapshotAdapter<State>
Facility to convert snapshots from and to a specialized data model.
Can be used when migration from different state types e.g. when migration
from Persistent FSM to Typed EventSourcedBehavior.
-
Method Summary
-
Method Details
-
fromJournal
Transform the stored state into the current state type. Can be used for migrations from different serialized state types. -
toJournal
Transform the state to a different type before sending to the journal.
-