ClusterRouterGroup

org.apache.pekko.cluster.routing.ClusterRouterGroup
final case class ClusterRouterGroup(local: Group, settings: ClusterRouterGroupSettings) extends Group

pekko.routing.RouterConfig implementation for deployment on cluster nodes. Delegates other duties to the local pekko.routing.RouterConfig, which makes it possible to mix this with the built-in routers such as pekko.routing.RoundRobinGroup or custom routers.

Attributes

Source
ClusterRouterConfig.scala
Graph
Supertypes
trait Product
trait Equals
trait Group
trait RouterConfig
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def paths(system: ActorSystem): Iterable[String]

Attributes

Definition Classes
Source
ClusterRouterConfig.scala
override def withFallback(other: RouterConfig): RouterConfig

Overridable merge strategy, by default completely prefers this (i.e. no merge).

Overridable merge strategy, by default completely prefers this (i.e. no merge).

Attributes

Definition Classes
Source
ClusterRouterConfig.scala

Inherited methods

override def createRouter(system: ActorSystem): Router

Create the actual router, responsible for routing messages to routees.

Create the actual router, responsible for routing messages to routees.

Value parameters

system

the ActorSystem this router belongs to

Attributes

Definition Classes
ClusterRouterConfigBase -> RouterConfig
Inherited from:
ClusterRouterConfigBase (hidden)
Source
ClusterRouterConfig.scala
override def isManagementMessage(msg: Any): Boolean

Is the message handled by the router head actor or the routingLogicController actor.

Is the message handled by the router head actor or the routingLogicController actor.

Attributes

Definition Classes
ClusterRouterConfigBase -> RouterConfig
Inherited from:
ClusterRouterConfigBase (hidden)
Source
ClusterRouterConfig.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def props(): Props

pekko.actor.Props for a group router based on the settings defined by this instance.

pekko.actor.Props for a group router based on the settings defined by this instance.

Attributes

Inherited from:
Group
Source
RouterConfig.scala
override def routerDispatcher: String

Dispatcher ID to use for running the “head” actor, which handles supervision, death watch and router management messages

Dispatcher ID to use for running the “head” actor, which handles supervision, death watch and router management messages

Attributes

Definition Classes
ClusterRouterConfigBase -> RouterConfig
Inherited from:
ClusterRouterConfigBase (hidden)
Source
ClusterRouterConfig.scala
override def routingLogicController(routingLogic: RoutingLogic): Option[Props]

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.

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.

Attributes

Definition Classes
ClusterRouterConfigBase -> RouterConfig
Inherited from:
ClusterRouterConfigBase (hidden)
Source
ClusterRouterConfig.scala

Specify that this router should stop itself when all routees have terminated (been removed). By Default it is true, unless a resizer is used.

Specify that this router should stop itself when all routees have terminated (been removed). By Default it is true, unless a resizer is used.

Attributes

Definition Classes
ClusterRouterConfigBase -> RouterConfig
Inherited from:
ClusterRouterConfigBase (hidden)
Source
ClusterRouterConfig.scala

Check that everything is there which is needed. Called in constructor of RoutedActorRef to fail early.

Check that everything is there which is needed. Called in constructor of RoutedActorRef to fail early.

Attributes

Inherited from:
RouterConfig
Source
RouterConfig.scala