Class ClusterRouterGroupSettings
TotalInstances of cluster router must be > 0
Inherited Members
Namespace: Akka.Cluster.Routing
Assembly: Akka.Cluster.dll
Syntax
public sealed class ClusterRouterGroupSettings : ClusterRouterSettingsBase
Constructors
| Edit this page View SourceClusterRouterGroupSettings(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 |
| 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 |
Properties
| Edit this page View SourceRouteesPaths
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 SourceFromConfig(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 |
Edit this page