public interface Snapshotter extends Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$| Modifier and Type | Method and Description |
|---|---|
void |
deleteSnapshot(long sequenceNr)
Deletes the snapshot identified by
sequenceNr. |
void |
deleteSnapshots(SnapshotSelectionCriteria criteria)
Deletes all snapshots matching
criteria. |
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. |
void |
saveSnapshot(java.lang.Object snapshot)
Saves a
snapshot of this snapshotter's state. |
long |
snapshotSequenceNr()
Sequence number to use when taking a snapshot.
|
ActorRef |
snapshotStore()
Snapshot store plugin actor.
|
java.lang.String |
snapshotterId()
Snapshotter id.
|
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, postStop, preRestart, preStart, receive, self, sender, supervisorStrategy, unhandledActorRef snapshotStore()
java.lang.String snapshotterId()
long snapshotSequenceNr()
void loadSnapshot(java.lang.String persistenceId,
SnapshotSelectionCriteria criteria,
long toSequenceNr)
SnapshotOffer
to the running PersistentActor.persistenceId - (undocumented)criteria - (undocumented)toSequenceNr - (undocumented)void saveSnapshot(java.lang.Object snapshot)
snapshot of this snapshotter's state.
The PersistentActor will be notified about the success or failure of this
via an SaveSnapshotSuccess or SaveSnapshotFailure message.
snapshot - (undocumented)void deleteSnapshot(long sequenceNr)
sequenceNr.
The PersistentActor will be notified about the status of the deletion
via an DeleteSnapshotSuccess or DeleteSnapshotFailure message.
sequenceNr - (undocumented)void deleteSnapshots(SnapshotSelectionCriteria criteria)
criteria.
The PersistentActor will be notified about the status of the deletion
via an DeleteSnapshotsSuccess or DeleteSnapshotsFailure message.
criteria - (undocumented)