Package akka.persistence.typed.internal
Class NoOpSnapshotAdapter
- java.lang.Object
-
- akka.persistence.typed.internal.NoOpSnapshotAdapter
-
- All Implemented Interfaces:
SnapshotAdapter<java.lang.Object>
public class NoOpSnapshotAdapter extends java.lang.Object implements SnapshotAdapter<java.lang.Object>
INTERNAL API
-
-
Constructor Summary
Constructors Constructor Description NoOpSnapshotAdapter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
fromJournal(java.lang.Object from)
Transform the stored state into the current state type.static NoOpSnapshotAdapter
i()
static <S> SnapshotAdapter<S>
instance()
java.lang.Object
toJournal(java.lang.Object state)
Transform the state to a different type before sending to the journal.
-
-
-
Method Detail
-
i
public static NoOpSnapshotAdapter i()
-
instance
public static <S> SnapshotAdapter<S> instance()
-
toJournal
public java.lang.Object toJournal(java.lang.Object state)
Description copied from interface:SnapshotAdapter
Transform the state to a different type before sending to the journal.- Specified by:
toJournal
in interfaceSnapshotAdapter<java.lang.Object>
-
fromJournal
public java.lang.Object fromJournal(java.lang.Object from)
Description copied from interface:SnapshotAdapter
Transform the stored state into the current state type. Can be used for migrations from different serialized state types.- Specified by:
fromJournal
in interfaceSnapshotAdapter<java.lang.Object>
-
-