Interface SnapshotInteractions<C,E,S>
public interface SnapshotInteractions<C,E,S>
INTERNAL API
-
Method Summary
Modifier and TypeMethodDescriptionvoidinternalDeleteSnapshots(long toSequenceNr) Deletes the snapshots up to and including thesequenceNr.voidinternalSaveSnapshot(org.apache.pekko.persistence.typed.internal.Running.RunningState<S, C> state) voidloadSnapshot(SnapshotSelectionCriteria criteria, long toSequenceNr) Instructs the snapshot store to load the specified snapshot and send it via aSnapshotOfferto the runningPersistentActor.setup()
-
Method Details
-
internalDeleteSnapshots
void internalDeleteSnapshots(long toSequenceNr) Deletes the snapshots up to and including thesequenceNr. UsesminSequenceNr = 0Lto always delete from the beginning, which simplifies the retention bookkeeping by removing the need to track a separate lower bound. -
internalSaveSnapshot
-
loadSnapshot
Instructs the snapshot store to load the specified snapshot and send it via aSnapshotOfferto the runningPersistentActor. -
setup
-