Search Results for

    Show / Hide Table of Contents

    Class LocalSnapshotStore

    Local file-based SnapshotStore implementation.

    Inheritance
    object
    ActorBase
    SnapshotStore
    LocalSnapshotStore
    Implements
    IInternalActor
    Inherited Members
    SnapshotStore.Receive(object)
    ActorBase.Sender
    ActorBase.Self
    ActorBase.Context
    ActorBase.AroundReceive(Receive, object)
    ActorBase.EmptyReceive
    ActorBase.Unhandled(object)
    ActorBase.Become(Receive)
    ActorBase.BecomeStacked(Receive)
    ActorBase.UnbecomeStacked()
    ActorBase.SetReceiveTimeout(TimeSpan?)
    ActorBase.AroundPreRestart(Exception, object)
    ActorBase.AroundPreStart()
    ActorBase.AroundPostRestart(Exception, object)
    ActorBase.PreRestart(Exception, object)
    ActorBase.PostRestart(Exception)
    ActorBase.AroundPostStop()
    ActorBase.PostStop()
    ActorBase.SupervisorStrategy()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Persistence.Snapshot
    Assembly: Akka.Persistence.dll
    Syntax
    public class LocalSnapshotStore : SnapshotStore, IInternalActor
    Remarks

    This is the default akka.peristence.snapshot-store implementation, when no others are explicitly set via HOCON configuration.

    Constructors

    | Edit this page View Source

    LocalSnapshotStore()

    Creates a new LocalSnapshotStore instance.

    Declaration
    public LocalSnapshotStore()

    Methods

    | Edit this page View Source

    DeleteAsync(SnapshotMetadata, CancellationToken)

    Plugin API: Deletes the snapshot identified by metadata.

    This call is protected with a circuit-breaker

    Declaration
    protected override Task DeleteAsync(SnapshotMetadata metadata, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    SnapshotMetadata metadata

    Snapshot metadata.

    CancellationToken cancellationToken

    CancellationToken used to signal cancelled snapshot operation

    Returns
    Type Description
    Task
    Overrides
    SnapshotStore.DeleteAsync(SnapshotMetadata, CancellationToken)
    | Edit this page View Source

    DeleteAsync(string, SnapshotSelectionCriteria, CancellationToken)

    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, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string persistenceId

    Id of the persistent actor.

    SnapshotSelectionCriteria criteria

    Selection criteria for deleting.

    CancellationToken cancellationToken

    CancellationToken used to signal cancelled snapshot operation

    Returns
    Type Description
    Task
    Overrides
    SnapshotStore.DeleteAsync(string, SnapshotSelectionCriteria, CancellationToken)
    | Edit this page View Source

    GetSnapshotFileForWrite(SnapshotMetadata, string)

    Declaration
    protected FileInfo GetSnapshotFileForWrite(SnapshotMetadata metadata, string extension = "")
    Parameters
    Type Name Description
    SnapshotMetadata metadata
    string extension
    Returns
    Type Description
    FileInfo
    | Edit this page View Source

    LoadAsync(string, SnapshotSelectionCriteria, CancellationToken)

    Plugin API: Asynchronously loads a snapshot.

    This call is protected with a circuit-breaker

    Declaration
    protected override Task<SelectedSnapshot> LoadAsync(string persistenceId, SnapshotSelectionCriteria criteria, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string persistenceId

    Id of the persistent actor.

    SnapshotSelectionCriteria criteria

    Selection criteria for loading.

    CancellationToken cancellationToken

    CancellationToken used to signal cancelled snapshot operation

    Returns
    Type Description
    Task<SelectedSnapshot>
    Overrides
    SnapshotStore.LoadAsync(string, SnapshotSelectionCriteria, CancellationToken)
    | Edit this page View Source

    PreStart()

    TBD

    Declaration
    protected override void PreStart()
    Overrides
    ActorBase.PreStart()
    | Edit this page View Source

    ReceivePluginInternal(object)

    Plugin API: Allows plugin implementers to use f.PipeTo(Self) and handle additional messages for implementing advanced features

    Declaration
    protected override bool ReceivePluginInternal(object message)
    Parameters
    Type Name Description
    object message

    TBD

    Returns
    Type Description
    bool

    TBD

    Overrides
    SnapshotStore.ReceivePluginInternal(object)
    | Edit this page View Source

    Save(SnapshotMetadata, object)

    TBD

    Declaration
    protected virtual void Save(SnapshotMetadata metadata, object snapshot)
    Parameters
    Type Name Description
    SnapshotMetadata metadata

    TBD

    object snapshot

    TBD

    | Edit this page View Source

    SaveAsync(SnapshotMetadata, object, CancellationToken)

    Plugin API: Asynchronously saves a snapshot.

    This call is protected with a circuit-breaker

    Declaration
    protected override Task SaveAsync(SnapshotMetadata metadata, object snapshot, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    SnapshotMetadata metadata

    Snapshot metadata.

    object snapshot

    Snapshot.

    CancellationToken cancellationToken

    CancellationToken used to signal cancelled snapshot operation

    Returns
    Type Description
    Task
    Overrides
    SnapshotStore.SaveAsync(SnapshotMetadata, object, CancellationToken)
    | Edit this page View Source

    Serialize(Stream, Snapshot)

    TBD

    Declaration
    protected void Serialize(Stream stream, Snapshot snapshot)
    Parameters
    Type Name Description
    Stream stream

    TBD

    Snapshot snapshot

    TBD

    | Edit this page View Source

    WithOutputStream(SnapshotMetadata, Action<Stream>)

    TBD

    Declaration
    protected FileInfo WithOutputStream(SnapshotMetadata metadata, Action<Stream> p)
    Parameters
    Type Name Description
    SnapshotMetadata metadata

    TBD

    Action<Stream> p

    TBD

    Returns
    Type Description
    FileInfo

    TBD

    Implements

    IInternalActor

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET