Search Results for

    Show / Hide Table of Contents

    Class PersistenceExtension

    Launches the Akka.Persistence runtime

    Inheritance
    object
    PersistenceExtension
    Implements
    IExtension
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Persistence
    Assembly: Akka.Persistence.dll
    Syntax
    public class PersistenceExtension : IExtension

    Constructors

    | Edit this page View Source

    PersistenceExtension(ExtendedActorSystem)

    Creates a new Akka.Persistence extension.

    Declaration
    public PersistenceExtension(ExtendedActorSystem system)
    Parameters
    Type Name Description
    ExtendedActorSystem system

    The ActorSystem that will be using Akka.Persistence

    Remarks

    DO NOT CALL DIRECTLY. Will be instantiated automatically be Akka.Persistence actors.

    Exceptions
    Type Condition
    NullReferenceException

    This exception is thrown when the default journal plugin, journal.plugin is not configured.

    Properties

    | Edit this page View Source

    DefaultInternalStashOverflowStrategy

    TBD

    Declaration
    public IStashOverflowStrategy DefaultInternalStashOverflowStrategy { get; }
    Property Value
    Type Description
    IStashOverflowStrategy
    | Edit this page View Source

    Settings

    The Akka.Persistence settings for the journal and snapshot store

    Declaration
    public PersistenceSettings Settings { get; }
    Property Value
    Type Description
    PersistenceSettings

    Methods

    | Edit this page View Source

    AdaptersFor(string)

    Returns an EventAdapters object which serves as a per-journal collection of bound event adapters. If no adapters are registered for a given journal the EventAdapters object will simply return the identity adapter for each class, otherwise the most specific adapter matching a given class will be returned.

    Declaration
    public EventAdapters AdaptersFor(string journalPluginId)
    Parameters
    Type Name Description
    string journalPluginId

    TBD

    Returns
    Type Description
    EventAdapters

    TBD

    Exceptions
    Type Condition
    ArgumentException

    This exception is thrown when either the plugin class name is undefined or the configuration path is missing.

    | Edit this page View Source

    JournalFor(string)

    Returns a journal plugin actor identified by journalPluginId. When empty, looks in akka.persistence.journal.plugin to find configuration entry path. When configured, uses journalPluginId as absolute path to the journal configuration entry. Configuration entry must contain few required fields, such as class. See persistence.conf.

    Declaration
    public IActorRef JournalFor(string journalPluginId)
    Parameters
    Type Name Description
    string journalPluginId

    TBD

    Returns
    Type Description
    IActorRef

    TBD

    Exceptions
    Type Condition
    ArgumentException

    This exception is thrown when either the plugin class name is undefined or the configuration path is missing.

    | Edit this page View Source

    PersistenceId(IActorRef)

    TBD

    Declaration
    public string PersistenceId(IActorRef actor)
    Parameters
    Type Name Description
    IActorRef actor

    TBD

    Returns
    Type Description
    string

    TBD

    | Edit this page View Source

    SnapshotStoreFor(string)

    Returns a snapshot store plugin actor identified by snapshotPluginId. When empty, looks in akka.persistence.snapshot-store.plugin to find configuration entry path. When configured, uses snapshotPluginId as absolute path to the snapshot store configuration entry. Configuration entry must contain few required fields, such as class. See persistence.conf.

    Declaration
    public IActorRef SnapshotStoreFor(string snapshotPluginId)
    Parameters
    Type Name Description
    string snapshotPluginId

    TBD

    Returns
    Type Description
    IActorRef

    TBD

    Exceptions
    Type Condition
    ArgumentException

    This exception is thrown when either the plugin class name is undefined or the configuration path is missing.

    Implements

    IExtension

    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