Interface Snapshotter

    • Method Detail

      • 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​(java.lang.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​(java.lang.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

        java.lang.String snapshotterId()
        Snapshotter id.