Class FromConfig
Router configuration which has no default, i.e. external configuration is required. This can be used when the dispatcher to be used for the head Router needs to be configured
Inherited Members
Namespace: Akka.Routing
Assembly: Akka.dll
Syntax
public class FromConfig : Pool, ISurrogated, IEquatable<RouterConfig>, IEquatable<Pool>
Constructors
| Edit this page View SourceFromConfig()
Initializes a new instance of the FromConfig class.
Declaration
public FromConfig()
FromConfig(Resizer, SupervisorStrategy, string)
Initializes a new instance of the FromConfig class.
Declaration
public FromConfig(Resizer resizer, SupervisorStrategy supervisorStrategy, string routerDispatcher)
Parameters
| Type | Name | Description |
|---|---|---|
| Resizer | resizer | TBD |
| SupervisorStrategy | supervisorStrategy | TBD |
| string | routerDispatcher | TBD |
Properties
| Edit this page View SourceInstance
Retrieves a RouterConfig based on what's stored in the configuration.
note
This router is set to use the default dispatcher DefaultDispatcherId.
Declaration
public static FromConfig Instance { get; }
Property Value
| Type | Description |
|---|---|
| FromConfig |
Methods
| Edit this page View SourceCreateRouter(ActorSystem)
N/A
Declaration
public override Router CreateRouter(ActorSystem system)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorSystem | system | N/A |
Returns
| Type | Description |
|---|---|
| Router | N/A |
Overrides
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | This exception is automatically thrown since FromConfig cannot create routers. |
CreateRouterActor()
N/A
Declaration
public override ActorBase CreateRouterActor()
Returns
| Type | Description |
|---|---|
| ActorBase | N/A |
Overrides
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | This exception is automatically thrown since FromConfig cannot create router actors. |
GetNrOfInstances(ActorSystem)
TBD
Declaration
public override int GetNrOfInstances(ActorSystem sys)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorSystem | sys | TBD |
Returns
| Type | Description |
|---|---|
| int | TBD |
Overrides
| Edit this page View SourceProps()
Enriches a Props with what what's stored in the router configuration.
Declaration
public Props Props()
Returns
| Type | Description |
|---|---|
| Props | TBD |
ToSurrogate(ActorSystem)
Creates a surrogate representation of the current FromConfig.
Declaration
public override ISurrogate ToSurrogate(ActorSystem system)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorSystem | system | The actor system that owns this router. |
Returns
| Type | Description |
|---|---|
| ISurrogate | The surrogate representation of the current FromConfig. |
Overrides
| Edit this page View SourceVerifyConfig(ActorPath)
N/A
Declaration
public override void VerifyConfig(ActorPath path)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorPath | path | N/A |
Overrides
Exceptions
| Type | Condition |
|---|---|
| ConfigurationException | This exception is automatically thrown since 'akka.actor.dispatch' is missing router configuration for |
WithDispatcher(string)
Setting the dispatcher to be used for the router head actor, which handles supervision, death watch and router management messages.
Declaration
public FromConfig WithDispatcher(string dispatcherId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | dispatcherId | TBD |
Returns
| Type | Description |
|---|---|
| FromConfig | TBD |
WithResizer(Resizer)
Setting the resizer to be used.
Declaration
public FromConfig WithResizer(Resizer resizer)
Parameters
| Type | Name | Description |
|---|---|---|
| Resizer | resizer | TBD |
Returns
| Type | Description |
|---|---|
| FromConfig | TBD |
WithSupervisorStrategy(SupervisorStrategy)
Setting the supervisor strategy to be used for the "head" Router actor
Declaration
public FromConfig WithSupervisorStrategy(SupervisorStrategy strategy)
Parameters
| Type | Name | Description |
|---|---|---|
| SupervisorStrategy | strategy | TBD |
Returns
| Type | Description |
|---|---|
| FromConfig | TBD |
Edit this page