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 SummaryConstructors Constructor Description ClusterRouterPool(Pool local, ClusterRouterPoolSettings settings)
 - 
Method SummaryAll 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface akka.cluster.routing.ClusterRouterConfigBasecreateRouter, isManagementMessage, routerDispatcher, routingLogicController, stopRouterWhenAllRouteesRemoved, super$isManagementMessage
 - 
Methods inherited from interface akka.routing.PoolenrichWithPoolDispatcher, props, stopRouterWhenAllRouteesRemoved, usePoolDispatcher
 - 
Methods inherited from interface akka.routing.RouterConfigverifyConfig
 
- 
 
- 
- 
- 
Constructor Detail- 
ClusterRouterPoolpublic ClusterRouterPool(Pool local, ClusterRouterPoolSettings settings) 
 
- 
 - 
Method Detail- 
applypublic static ClusterRouterPool apply(Pool local, ClusterRouterPoolSettings settings) 
 - 
unapplypublic static scala.Option<scala.Tuple2<Pool,ClusterRouterPoolSettings>> unapply(ClusterRouterPool x$0) 
 - 
localpublic Pool local() - Specified by:
- localin interface- ClusterRouterConfigBase
 
 - 
settingspublic ClusterRouterPoolSettings settings() - Specified by:
- settingsin interface- ClusterRouterConfigBase
 
 - 
nrOfInstancespublic int nrOfInstances(ActorSystem sys) Initial number of routee instances- Specified by:
- nrOfInstancesin interface- Pool
 
 - 
resizerpublic 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.
 - 
supervisorStrategypublic SupervisorStrategy supervisorStrategy() Description copied from interface:PoolSupervisorStrategy for the head actor, i.e. for supervising the routees of the pool.- Specified by:
- supervisorStrategyin interface- Pool
 
 - 
withFallbackpublic RouterConfig withFallback(RouterConfig other) Description copied from interface:RouterConfigOverridable merge strategy, by default completely prefersthis(i.e. no merge).- Specified by:
- withFallbackin interface- RouterConfig
 
 - 
copypublic ClusterRouterPool copy(Pool local, ClusterRouterPoolSettings settings) 
 - 
copy$default$1public Pool copy$default$1() 
 - 
copy$default$2public ClusterRouterPoolSettings copy$default$2() 
 - 
productPrefixpublic java.lang.String productPrefix() - Specified by:
- productPrefixin interface- scala.Product
 
 - 
productAritypublic int productArity() - Specified by:
- productArityin interface- scala.Product
 
 - 
productElementpublic java.lang.Object productElement(int x$1) - Specified by:
- productElementin interface- scala.Product
 
 - 
productIteratorpublic scala.collection.Iterator<java.lang.Object> productIterator() - Specified by:
- productIteratorin interface- scala.Product
 
 - 
canEqualpublic boolean canEqual(java.lang.Object x$1) - Specified by:
- canEqualin interface- scala.Equals
 
 - 
productElementNamepublic java.lang.String productElementName(int x$1) - Specified by:
- productElementNamein interface- scala.Product
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object x$1) - Specified by:
- equalsin interface- scala.Equals
- Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-