Class PhobosPoolRouterConfig
Used to wrap a Pool such that any SpanEnvelopes are automatically unpacked prior to being considered for routing purposes.
Inherited Members
Namespace: Phobos.Actor.Routing
Assembly: Phobos.Actor.dll
Syntax
public sealed class PhobosPoolRouterConfig : Pool, ISurrogated, IEquatable<RouterConfig>, IEquatable<Pool>
Constructors
PhobosPoolRouterConfig(Pool)
Declaration
public PhobosPoolRouterConfig(Pool wrappedConfig)
Parameters
| Type | Name | Description |
|---|---|---|
| Pool | wrappedConfig |
Properties
RouterDispatcher
Dispatcher ID to use for running the "head" actor, which handles supervision, death watch and router management messages.
Declaration
public override string RouterDispatcher { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
StopRouterWhenAllRouteesRemoved
Specify that this router should stop itself when all routees have terminated (been removed).
Declaration
public override bool StopRouterWhenAllRouteesRemoved { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Methods
CreateRouter(ActorSystem)
Creates a router that is responsible for routing messages to routees within the provided system.
Declaration
public override Router CreateRouter(ActorSystem system)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorSystem | system | The ActorSystem this router belongs to. |
Returns
| Type | Description |
|---|---|
| Router | The newly created router tied to the given system. |
Overrides
CreateRouterActor()
TBD
Declaration
public override ActorBase CreateRouterActor()
Returns
| Type | Description |
|---|---|
| ActorBase | TBD |
Overrides
GetNrOfInstances(ActorSystem)
Used by the Akka.Routing.RoutedActorCell to determine the initial number of routees.
Declaration
public override int GetNrOfInstances(ActorSystem system)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorSystem | system | The actor system that owns this router. |
Returns
| Type | Description |
|---|---|
| int | The number of routees associated with this pool. |
Overrides
IsManagementMessage(object)
Determines whether a provided message is handled by the router.
Declaration
public override bool IsManagementMessage(object message)
Parameters
| Type | Name | Description |
|---|---|---|
| object | message | The message to inspect. |
Returns
| Type | Description |
|---|---|
| bool |
|
Overrides
RoutingLogicController(RoutingLogic)
Possibility to define an actor for controlling the routing logic from external stimuli(e.g.monitoring metrics). This actor will be a child of the router "head" actor. Management messages not handled by the "head" actor are delegated to this controller actor.
Declaration
public override Props RoutingLogicController(RoutingLogic routingLogic)
Parameters
| Type | Name | Description |
|---|---|---|
| RoutingLogic | routingLogic |
Returns
| Type | Description |
|---|---|
| Props |
Overrides
ToSurrogate(ActorSystem)
Creates a surrogate representation of the current router.
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 router. |
Overrides
VerifyConfig(ActorPath)
Check that everything is there which is needed. Called in constructor of RoutedActorRef to fail early.
Declaration
public override void VerifyConfig(ActorPath path)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorPath | path | TBD |
Overrides
WithFallback(RouterConfig)
Configure the current router with an auxiliary router for routes that it does not know how to handle.
Declaration
public override RouterConfig WithFallback(RouterConfig routerConfig)
Parameters
| Type | Name | Description |
|---|---|---|
| RouterConfig | routerConfig | The router to use as an auxiliary source. |
Returns
| Type | Description |
|---|---|
| RouterConfig | The router configured with the auxiliary information. |