Interface Snapshotter

All Superinterfaces:
Actor
All Known Subinterfaces:
AbstractPersistentActorLike, AtLeastOnceDelivery, AtLeastOnceDeliveryLike, Eventsourced, PersistentActor, PersistentFSM<S,D,E>
All Known Implementing Classes:
AbstractPersistentActor, AbstractPersistentActorWithAtLeastOnceDelivery, AbstractPersistentActorWithTimers, AbstractPersistentFSM, AbstractPersistentLoggingFSM, JournalPerfSpec.BenchActor, PersistentShardCoordinator

public interface Snapshotter extends Actor
Snapshot API on top of the internal snapshot protocol.
  • Method Details

    • deleteSnapshot

      void deleteSnapshot(long sequenceNr)
      Deletes the snapshot identified by sequenceNr.

      The PersistentActor will be notified about the status of the deletion via an DeleteSnapshotSuccess or DeleteSnapshotFailure message.

    • deleteSnapshots

      void deleteSnapshots(SnapshotSelectionCriteria criteria)
      Deletes all snapshots matching criteria.

      The PersistentActor will be notified about the status of the deletion via an DeleteSnapshotsSuccess or DeleteSnapshotsFailure message.

    • loadSnapshot

      void loadSnapshot(String persistenceId, SnapshotSelectionCriteria criteria, long toSequenceNr)
      Instructs the snapshot store to load the specified snapshot and send it via an SnapshotOffer to the running PersistentActor.
    • saveSnapshot

      void saveSnapshot(Object snapshot)
      Saves a snapshot of this snapshotter's state.

      The PersistentActor will be notified about the success or failure of this via an SaveSnapshotSuccess or SaveSnapshotFailure message.

    • snapshotSequenceNr

      long snapshotSequenceNr()
      Sequence number to use when taking a snapshot.
    • snapshotStore

      ActorRef snapshotStore()
      Snapshot store plugin actor.
    • snapshotterId

      String snapshotterId()
      Snapshotter id.