Package org.apache.pekko.cluster.routing
Class ClusterRouterPool
java.lang.Object
org.apache.pekko.cluster.routing.ClusterRouterPool
- All Implemented Interfaces:
Serializable,ClusterRouterConfigBase,Pool,RouterConfig,scala.Equals,scala.Product
public final class ClusterRouterPool
extends Object
implements Pool, ClusterRouterConfigBase, scala.Product, Serializable
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.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterRouterPoolapply(Pool local, ClusterRouterPoolSettings settings) booleancopy(Pool local, ClusterRouterPoolSettings settings) booleaninthashCode()local()intnrOfInstances(ActorSystem sys) Initial number of routee instancesintproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>scala.Option<Resizer>resizer()Pool with dynamically resizable number of routees return thepekko.routing.Resizerto use.settings()SupervisorStrategy for the head actor, i.e.toString()static scala.Option<scala.Tuple2<Pool,ClusterRouterPoolSettings>> unapply(ClusterRouterPool x$0) withFallback(RouterConfig other) Overridable merge strategy, by default completely prefersthis(i.e.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.pekko.cluster.routing.ClusterRouterConfigBase
createRouter, isManagementMessage, routerDispatcher, routingLogicController, stopRouterWhenAllRouteesRemoved, super$isManagementMessageMethods inherited from interface org.apache.pekko.routing.Pool
enrichWithPoolDispatcher, props, stopRouterWhenAllRouteesRemoved, usePoolDispatcherMethods inherited from interface scala.Product
productElementNamesMethods inherited from interface org.apache.pekko.routing.RouterConfig
verifyConfig
-
Constructor Details
-
ClusterRouterPool
-
-
Method Details
-
apply
-
unapply
public static scala.Option<scala.Tuple2<Pool,ClusterRouterPoolSettings>> unapply(ClusterRouterPool x$0) -
local
- Specified by:
localin interfaceClusterRouterConfigBase
-
settings
- Specified by:
settingsin interfaceClusterRouterConfigBase
-
nrOfInstances
Initial number of routee instances- Specified by:
nrOfInstancesin interfacePool
-
resizer
Description copied from interface:PoolPool with dynamically resizable number of routees return thepekko.routing.Resizerto use. The resizer is invoked once when the router is created, before any messages can be sent to it. Resize is also triggered when messages are sent to the routees, and the resizer is invoked asynchronously, i.e. not necessarily before the message has been sent. -
supervisorStrategy
Description copied from interface:PoolSupervisorStrategy for the head actor, i.e. for supervising the routees of the pool.- Specified by:
supervisorStrategyin interfacePool
-
withFallback
Description copied from interface:RouterConfigOverridable merge strategy, by default completely prefersthis(i.e. no merge).- Specified by:
withFallbackin interfaceRouterConfig
-
copy
-
copy$default$1
-
copy$default$2
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-