Show / Hide Table of Contents

Class PhobosPoolRouterConfig

Used to wrap a Pool such that any SpanEnvelopes are automatically unpacked prior to being considered for routing purposes.

Inheritance
object
RouterConfig
Pool
PhobosPoolRouterConfig
Implements
ISurrogated
IEquatable<RouterConfig>
IEquatable<Pool>
Inherited Members
Pool.Props(Props)
Pool.Equals(Pool)
Pool.Equals(object)
Pool.GetHashCode()
Pool.NrOfInstances
Pool.UsePoolDispatcher
Pool.Resizer
Pool.SupervisorStrategy
Pool.DefaultSupervisorStrategy
RouterConfig.Equals(RouterConfig)
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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
RouterConfig.RouterDispatcher

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
Pool.StopRouterWhenAllRouteesRemoved

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
RouterConfig.CreateRouter(ActorSystem)

CreateRouterActor()

TBD

Declaration
public override ActorBase CreateRouterActor()
Returns
Type Description
ActorBase

TBD

Overrides
Pool.CreateRouterActor()

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
Pool.GetNrOfInstances(ActorSystem)

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

true if this message is handled by the router; otherwise false.

Overrides
RouterConfig.IsManagementMessage(object)

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
RouterConfig.RoutingLogicController(RoutingLogic)

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
RouterConfig.ToSurrogate(ActorSystem)

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
RouterConfig.VerifyConfig(ActorPath)

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.

Overrides
RouterConfig.WithFallback(RouterConfig)

Implements

ISurrogated
IEquatable<T>
IEquatable<T>
In this article

Phobos®

APM for Akka.NET Applications

Product
  • Purchase Phobos
  • Book a Live Demo
  • Phobos Quick Start Guide
  • Phobos Features
  • API Documentation
  • Release Notes
Resources
  • Akka.NET Documentation
  • Petabridge Blog
  • Akka.NET Support Plans
  • Akka.NET Consulting Services
  • Akka.NET Training
Company
  • About Petabridge
  • Contact Us
  • Privacy Policy

© 2025 Petabridge®. All rights reserved. Built with ♥ for the Akka.NET community.