Package akka.cluster.routing
Class ClusterRouterPool
- java.lang.Object
-
- akka.cluster.routing.ClusterRouterPool
-
- All Implemented Interfaces:
ClusterRouterConfigBase,Pool,RouterConfig,java.io.Serializable,scala.Equals,scala.Product
public final class ClusterRouterPool extends java.lang.Object implements Pool, ClusterRouterConfigBase, scala.Product, java.io.Serializable
RouterConfigimplementation for deployment on cluster nodes. Delegates other duties to the localRouterConfig, which makes it possible to mix this with the built-in routers such asRoundRobinGroupor custom routers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterRouterPool(Pool local, ClusterRouterPoolSettings settings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClusterRouterPoolapply(Pool local, ClusterRouterPoolSettings settings)booleancanEqual(java.lang.Object x$1)ClusterRouterPoolcopy(Pool local, ClusterRouterPoolSettings settings)Poolcopy$default$1()ClusterRouterPoolSettingscopy$default$2()booleanequals(java.lang.Object x$1)inthashCode()Poollocal()intnrOfInstances(ActorSystem sys)Initial number of routee instancesintproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()scala.Option<Resizer>resizer()Pool with dynamically resizable number of routees return theResizerto use.ClusterRouterPoolSettingssettings()SupervisorStrategysupervisorStrategy()SupervisorStrategy for the head actor, i.e.java.lang.StringtoString()static scala.Option<scala.Tuple2<Pool,ClusterRouterPoolSettings>>unapply(ClusterRouterPool x$0)RouterConfigwithFallback(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, wait
-
Methods inherited from interface akka.cluster.routing.ClusterRouterConfigBase
createRouter, isManagementMessage, routerDispatcher, routingLogicController, stopRouterWhenAllRouteesRemoved, super$isManagementMessage
-
Methods inherited from interface akka.routing.Pool
enrichWithPoolDispatcher, props, stopRouterWhenAllRouteesRemoved, usePoolDispatcher
-
Methods inherited from interface akka.routing.RouterConfig
verifyConfig
-
-
-
-
Constructor Detail
-
ClusterRouterPool
public ClusterRouterPool(Pool local, ClusterRouterPoolSettings settings)
-
-
Method Detail
-
apply
public static ClusterRouterPool apply(Pool local, ClusterRouterPoolSettings settings)
-
unapply
public static scala.Option<scala.Tuple2<Pool,ClusterRouterPoolSettings>> unapply(ClusterRouterPool x$0)
-
local
public Pool local()
- Specified by:
localin interfaceClusterRouterConfigBase
-
settings
public ClusterRouterPoolSettings settings()
- Specified by:
settingsin interfaceClusterRouterConfigBase
-
nrOfInstances
public int nrOfInstances(ActorSystem sys)
Initial number of routee instances- Specified by:
nrOfInstancesin interfacePool
-
resizer
public scala.Option<Resizer> resizer()
Description copied from interface:PoolPool with dynamically resizable number of routees return theResizerto 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
public SupervisorStrategy supervisorStrategy()
Description copied from interface:PoolSupervisorStrategy for the head actor, i.e. for supervising the routees of the pool.- Specified by:
supervisorStrategyin interfacePool
-
withFallback
public RouterConfig withFallback(RouterConfig other)
Description copied from interface:RouterConfigOverridable merge strategy, by default completely prefersthis(i.e. no merge).- Specified by:
withFallbackin interfaceRouterConfig
-
copy
public ClusterRouterPool copy(Pool local, ClusterRouterPoolSettings settings)
-
copy$default$1
public Pool copy$default$1()
-
copy$default$2
public ClusterRouterPoolSettings copy$default$2()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-