Package akka.cluster.routing
Class ClusterRouterPoolActor
- java.lang.Object
-
- akka.routing.RouterActor
-
- akka.routing.RouterPoolActor
-
- akka.cluster.routing.ClusterRouterPoolActor
-
- All Implemented Interfaces:
Actor
,ClusterRouterActor
public class ClusterRouterPoolActor extends RouterPoolActor implements ClusterRouterActor
Adds routees based on totalInstances and maxInstancesPerNode settings
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$
-
-
Constructor Summary
Constructors Constructor Description ClusterRouterPoolActor(SupervisorStrategy supervisorStrategy, ClusterRouterPoolSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRoutees()
Adds routees based on totalInstances and maxInstancesPerNode settingsscala.collection.immutable.SortedSet<Address>
nodes()
void
nodes_$eq(scala.collection.immutable.SortedSet<Address> x$1)
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit>
receive()
Scala API: This defines the initial actor behavior, it must return a partial function with the actor logic.scala.Option<Address>
selectDeploymentTarget()
ClusterRouterPoolSettings
settings()
-
Methods inherited from class akka.routing.RouterPoolActor
pool, supervisorStrategy
-
Methods inherited from class akka.routing.RouterActor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, cell, context, preRestart, routingLogicController, self, stopIfAllRouteesRemoved
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.Actor
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, postStop, preStart, sender, unhandled
-
Methods inherited from interface akka.cluster.routing.ClusterRouterActor
addMember, availableNodes, cluster, clusterReceive, fullAddress, isAvailable, postStop, preStart, removeMember, satisfiesRoles
-
-
-
-
Constructor Detail
-
ClusterRouterPoolActor
public ClusterRouterPoolActor(SupervisorStrategy supervisorStrategy, ClusterRouterPoolSettings settings)
-
-
Method Detail
-
addRoutees
public void addRoutees()
Adds routees based on totalInstances and maxInstancesPerNode settings- Specified by:
addRoutees
in interfaceClusterRouterActor
-
nodes
public scala.collection.immutable.SortedSet<Address> nodes()
- Specified by:
nodes
in interfaceClusterRouterActor
-
nodes_$eq
public void nodes_$eq(scala.collection.immutable.SortedSet<Address> x$1)
- Specified by:
nodes_$eq
in interfaceClusterRouterActor
-
receive
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Description copied from interface:Actor
Scala API: This defines the initial actor behavior, it must return a partial function with the actor logic.- Specified by:
receive
in interfaceActor
- Overrides:
receive
in classRouterPoolActor
- Returns:
- (undocumented)
-
selectDeploymentTarget
public scala.Option<Address> selectDeploymentTarget()
-
settings
public ClusterRouterPoolSettings settings()
- Specified by:
settings
in interfaceClusterRouterActor
-
-