Search Results for

    Show / Hide Table of Contents

    Class ClusterSingletonProxy

    The ClusterSingletonProxy works together with the ClusterSingletonManager to provide a distributed proxy to the singleton actor.

    The proxy can be started on every node where the singleton needs to be reached and used as if it were the singleton itself. It will then act as a router to the currently running singleton instance. If the singleton is not currently available, e.g., during hand off or startup, the proxy will buffer the messages sent to the singleton and then deliver them when the singleton is finally available. The size of the buffer is configurable and it can be disabled by using a buffer size of 0. When the buffer is full old messages will be dropped when new messages are sent via the proxy.

    The proxy works by keeping track of the oldest cluster member. When a new oldest member is identified, e.g. because the older one left the cluster, or at startup, the proxy will try to identify the singleton on the oldest member by periodically sending an Identify message until the singleton responds with its ActorIdentity.

    Note that this is a best effort implementation: messages can always be lost due to the distributed nature of the actors involved.
    Inheritance
    object
    ActorBase
    UntypedActor
    ReceiveActor
    ClusterSingletonProxy
    Implements
    IInternalActor
    IInitializableActor
    IWithTimers
    Inherited Members
    ActorBase.AroundPreRestart(Exception, object)
    ActorBase.AroundPreStart()
    ActorBase.AroundPostRestart(Exception, object)
    ActorBase.AroundPostStop()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Cluster.Tools.Singleton
    Assembly: Akka.Cluster.Tools.dll
    Syntax
    public sealed class ClusterSingletonProxy : ReceiveActor, IInternalActor, IInitializableActor, IWithTimers

    Constructors

    | Edit this page View Source

    ClusterSingletonProxy(string, ClusterSingletonProxySettings)

    TBD

    Declaration
    public ClusterSingletonProxy(string singletonManagerPath, ClusterSingletonProxySettings settings)
    Parameters
    Type Name Description
    string singletonManagerPath

    TBD

    ClusterSingletonProxySettings settings

    TBD

    Properties

    | Edit this page View Source

    Timers

    Gets or sets the TimerScheduler. This will be automatically populated by the framework in base constructor. Implement this as an auto property.

    Declaration
    public ITimerScheduler Timers { get; set; }
    Property Value
    Type Description
    ITimerScheduler

    Methods

    | Edit this page View Source

    DefaultConfig()

    Returns default HOCON configuration for the cluster singleton.

    Declaration
    public static Config DefaultConfig()
    Returns
    Type Description
    Config

    TBD

    | Edit this page View Source

    PostStop()

    TBD

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

    PreStart()

    TBD

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

    Props(string, ClusterSingletonProxySettings)

    Factory method for ClusterSingletonProxy Props.

    Declaration
    public static Props Props(string singletonManagerPath, ClusterSingletonProxySettings settings)
    Parameters
    Type Name Description
    string singletonManagerPath

    The logical path of the singleton manager, e.g. /user/singletonManager, which ends with the name you defined in actorOf when creating the ClusterSingletonManager.

    ClusterSingletonProxySettings settings

    Cluster singleton proxy settings.

    Returns
    Type Description
    Props

    TBD

    Implements

    IInternalActor
    IInitializableActor
    IWithTimers

    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