Interface ISnapshotter
Snapshot API on top of the internal snapshot protocol.
Namespace: Akka.Persistence
Assembly: Akka.Persistence.dll
Syntax
public interface ISnapshotter
Properties
| Improve this Doc View SourceSnapshotSequenceNr
Incrementable sequence number to use when taking a snapshot.
Declaration
long SnapshotSequenceNr { get; }
Property Value
Type | Description |
---|---|
Int64 |
SnapshotterId
Snapshotter id.
Declaration
string SnapshotterId { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceDeleteSnapshot(Int64)
Deletes the snapshot identified by sequenceNr
.
The PersistentActor will be notified about the status of the deletion via an DeleteSnapshotSuccess or DeleteSnapshotFailure message.
Declaration
void DeleteSnapshot(long sequenceNr)
Parameters
Type | Name | Description |
---|---|---|
Int64 | sequenceNr | TBD |
DeleteSnapshots(SnapshotSelectionCriteria)
Deletes all snapshots matching criteria
.
The PersistentActor will be notified about the status of the deletion via an DeleteSnapshotsSuccess or DeleteSnapshotsFailure message.
Declaration
void DeleteSnapshots(SnapshotSelectionCriteria criteria)
Parameters
Type | Name | Description |
---|---|---|
SnapshotSelectionCriteria | criteria | TBD |
LoadSnapshot(String, SnapshotSelectionCriteria, Int64)
Instructs the snapshot store to load the specified snapshot and send it via an SnapshotOffer to the running PersistentActor.
Declaration
void LoadSnapshot(string persistenceId, SnapshotSelectionCriteria criteria, long toSequenceNr)
Parameters
Type | Name | Description |
---|---|---|
String | persistenceId | TBD |
SnapshotSelectionCriteria | criteria | TBD |
Int64 | toSequenceNr | TBD |
SaveSnapshot(Object)
Saves snapshot
of current ISnapshotter state.
The PersistentActor will be notified about the success or failure of this via an SaveSnapshotSuccess or SaveSnapshotFailure message.
Declaration
void SaveSnapshot(object snapshot)
Parameters
Type | Name | Description |
---|---|---|
Object | snapshot | TBD |