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
RouterConfig
implementation for deployment on cluster nodes. Delegates other duties to the localRouterConfig
, which makes it possible to mix this with the built-in routers such asRoundRobinGroup
or 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 ClusterRouterPool
apply(Pool local, ClusterRouterPoolSettings settings)
boolean
canEqual(java.lang.Object x$1)
ClusterRouterPool
copy(Pool local, ClusterRouterPoolSettings settings)
Pool
copy$default$1()
ClusterRouterPoolSettings
copy$default$2()
boolean
equals(java.lang.Object x$1)
int
hashCode()
Pool
local()
int
nrOfInstances(ActorSystem sys)
Initial number of routee instancesint
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
scala.Option<Resizer>
resizer()
Pool with dynamically resizable number of routees return theResizer
to use.ClusterRouterPoolSettings
settings()
SupervisorStrategy
supervisorStrategy()
SupervisorStrategy for the head actor, i.e.java.lang.String
toString()
static scala.Option<scala.Tuple2<Pool,ClusterRouterPoolSettings>>
unapply(ClusterRouterPool x$0)
RouterConfig
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, 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:
local
in interfaceClusterRouterConfigBase
-
settings
public ClusterRouterPoolSettings settings()
- Specified by:
settings
in interfaceClusterRouterConfigBase
-
nrOfInstances
public int nrOfInstances(ActorSystem sys)
Initial number of routee instances- Specified by:
nrOfInstances
in interfacePool
-
resizer
public scala.Option<Resizer> resizer()
Description copied from interface:Pool
Pool with dynamically resizable number of routees return theResizer
to 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:Pool
SupervisorStrategy for the head actor, i.e. for supervising the routees of the pool.- Specified by:
supervisorStrategy
in interfacePool
-
withFallback
public RouterConfig withFallback(RouterConfig other)
Description copied from interface:RouterConfig
Overridable merge strategy, by default completely prefersthis
(i.e. no merge).- Specified by:
withFallback
in 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:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-