Class SnapshotStore
Abstract snapshot store.
Inheritance
Implements
Inherited Members
Namespace: Akka.Persistence.Snapshot
Assembly: Akka.Persistence.dll
Syntax
public abstract class SnapshotStore : ActorBase, IInternalActor
Constructors
| Improve this Doc View SourceSnapshotStore()
Initializes a new instance of the SnapshotStore class.
Declaration
protected SnapshotStore()
Exceptions
Type | Condition |
---|---|
ArgumentException | This exception is thrown when the associated Persistence extension has not been used in current actor system context. |
Methods
| Improve this Doc View SourceDeleteAsync(SnapshotMetadata)
Plugin API: Deletes the snapshot identified by metadata
.
This call is protected with a circuit-breaker
Declaration
protected abstract Task DeleteAsync(SnapshotMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
SnapshotMetadata | metadata | Snapshot metadata. |
Returns
Type | Description |
---|---|
Task | TBD |
DeleteAsync(String, SnapshotSelectionCriteria)
Plugin API: Deletes all snapshots matching provided criteria
.
This call is protected with a circuit-breaker
Declaration
protected abstract 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 |
LoadAsync(String, SnapshotSelectionCriteria)
Plugin API: Asynchronously loads a snapshot.
This call is protected with a circuit-breaker
Declaration
protected abstract 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 |
Receive(Object)
Processor for user defined messages.
Declaration
protected sealed override bool Receive(object message)
Parameters
Type | Name | Description |
---|---|---|
Object | message | The message. |
Returns
Type | Description |
---|---|
Boolean | TBD |
Overrides
| Improve this Doc View SourceReceivePluginInternal(Object)
Plugin API: Allows plugin implementers to use f.PipeTo(Self) and handle additional messages for implementing advanced features
Declaration
protected virtual bool ReceivePluginInternal(object message)
Parameters
Type | Name | Description |
---|---|---|
Object | message | TBD |
Returns
Type | Description |
---|---|
Boolean | TBD |
SaveAsync(SnapshotMetadata, Object)
Plugin API: Asynchronously saves a snapshot.
This call is protected with a circuit-breaker
Declaration
protected abstract Task SaveAsync(SnapshotMetadata metadata, object snapshot)
Parameters
Type | Name | Description |
---|---|---|
SnapshotMetadata | metadata | Snapshot metadata. |
Object | snapshot | Snapshot. |
Returns
Type | Description |
---|---|
Task | TBD |