Class MemorySnapshotStore
INTERNAL API.
In-memory SnapshotStore implementation.
Implements
Inherited Members
Namespace: Akka.Persistence.Snapshot
Assembly: Akka.Persistence.dll
Syntax
public class MemorySnapshotStore : SnapshotStore, IInternalActor
Properties
| Edit this page View SourceSnapshots
This is available to expose/override the snapshots in derived snapshot stores
Declaration
protected virtual List<SnapshotEntry> Snapshots { get; }
Property Value
Type | Description |
---|---|
List<SnapshotEntry> |
Methods
| Edit this page View SourceDeleteAsync(SnapshotMetadata)
Plugin API: Deletes the snapshot identified by metadata
.
This call is protected with a circuit-breaker
Declaration
protected override Task DeleteAsync(SnapshotMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
SnapshotMetadata | metadata | Snapshot metadata. |
Returns
Type | Description |
---|---|
Task | TBD |
Overrides
| Edit this page View SourceDeleteAsync(string, SnapshotSelectionCriteria)
Plugin API: Deletes all snapshots matching provided criteria
.
This call is protected with a circuit-breaker
Declaration
protected override Task DeleteAsync(string persistenceId, SnapshotSelectionCriteria criteria)
Parameters
Type | Name | Description |
---|---|---|
string | persistenceId | Id of the persistent actor. |
SnapshotSelectionCriteria | criteria | Selection criteria for deleting. |
Returns
Type | Description |
---|---|
Task | TBD |
Overrides
| Edit this page View SourceLoadAsync(string, SnapshotSelectionCriteria)
Plugin API: Asynchronously loads a snapshot.
This call is protected with a circuit-breaker
Declaration
protected override Task<SelectedSnapshot> LoadAsync(string persistenceId, SnapshotSelectionCriteria criteria)
Parameters
Type | Name | Description |
---|---|---|
string | persistenceId | Id of the persistent actor. |
SnapshotSelectionCriteria | criteria | Selection criteria for loading. |
Returns
Type | Description |
---|---|
Task<SelectedSnapshot> | TBD |
Overrides
| Edit this page View SourceSaveAsync(SnapshotMetadata, object)
Plugin API: Asynchronously saves a snapshot.
This call is protected with a circuit-breaker
Declaration
protected override Task SaveAsync(SnapshotMetadata metadata, object snapshot)
Parameters
Type | Name | Description |
---|---|---|
SnapshotMetadata | metadata | Snapshot metadata. |
object | snapshot | Snapshot. |
Returns
Type | Description |
---|---|
Task | TBD |