Search Results for

    Show / Hide Table of Contents

    Class ClusterRouterGroupSettings

    TotalInstances of cluster router must be > 0

    Inheritance
    object
    ClusterRouterSettingsBase
    ClusterRouterGroupSettings
    Inherited Members
    ClusterRouterSettingsBase.TotalInstances
    ClusterRouterSettingsBase.AllowLocalRoutees
    ClusterRouterSettingsBase.UseRole
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Cluster.Routing
    Assembly: Akka.Cluster.dll
    Syntax
    public sealed class ClusterRouterGroupSettings : ClusterRouterSettingsBase

    Constructors

    | Edit this page View Source

    ClusterRouterGroupSettings(int, IEnumerable<string>, bool, string)

    Initializes a new instance of the ClusterRouterGroupSettings class.

    Declaration
    public ClusterRouterGroupSettings(int totalInstances, IEnumerable<string> routeesPaths, bool allowLocalRoutees, string useRole = null)
    Parameters
    Type Name Description
    int totalInstances

    The total number of routees. Defaults to 10000.

    IEnumerable<string> routeesPaths

    The actor selection paths to use for each routee.

    bool allowLocalRoutees

    When true, allows routees to be deployed locally on the node doing the deploying so long as that node also satisfies the useRole setting when used.

    string useRole

    The role of the node upon which we are able to create routees.

    Exceptions
    Type Condition
    ArgumentException

    This exception is thrown when either the specified routeesPaths is undefined or a path defined in the specified routeesPaths is an invalid relative actor path.

    Properties

    | Edit this page View Source

    RouteesPaths

    The paths of the routees to use on each qualified node.

    Declaration
    public IEnumerable<string> RouteesPaths { get; }
    Property Value
    Type Description
    IEnumerable<string>

    Methods

    | Edit this page View Source

    FromConfig(Config)

    Creates a new ClusterRouterGroupSettings from the specified configuration.

    Declaration
    public static ClusterRouterGroupSettings FromConfig(Config config)
    Parameters
    Type Name Description
    Config config

    The configuration used to configure the settings.

    Returns
    Type Description
    ClusterRouterGroupSettings

    New settings based on the specified config

    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