akka.cluster.routing
Class ClusterRouterConfig
java.lang.Object
akka.cluster.routing.ClusterRouterConfig
- All Implemented Interfaces:
- ClusterRouterConfigBase, DeprecatedRouterConfig, Group, Pool, RouterConfig, java.io.Serializable, scala.Equals, scala.Product
public final class ClusterRouterConfig
- extends java.lang.Object
- implements DeprecatedRouterConfig, ClusterRouterConfigBase, scala.Product, scala.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
ClusterRouterConfig
public ClusterRouterConfig(DeprecatedRouterConfig local,
ClusterRouterSettings settings)
local
public DeprecatedRouterConfig local()
- Specified by:
local
in interface ClusterRouterConfigBase
settings
public ClusterRouterSettings settings()
- Specified by:
settings
in interface ClusterRouterConfigBase
newRoutee
public Routee newRoutee(Props routeeProps,
ActorContext context)
- INTERNAL API
- Specified by:
newRoutee
in interface Pool
- Parameters:
routeeProps
- (undocumented)context
- (undocumented)
- Returns:
- (undocumented)
nrOfInstances
public int nrOfInstances()
- Description copied from interface:
Pool
- Initial number of routee instances
- Specified by:
nrOfInstances
in interface Pool
- Returns:
- (undocumented)
paths
public scala.collection.immutable.Iterable<java.lang.String> paths()
- Specified by:
paths
in interface Group
resizer
public scala.Option<Resizer> resizer()
- Description copied from interface:
Pool
- Pool with dynamically resizable number of routees return the
Resizer
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.
- Specified by:
resizer
in interface Pool
- Returns:
- (undocumented)
createRouterActor
public RouterActor createRouterActor()
- INTERNAL API
- Specified by:
createRouterActor
in interface Group
- Specified by:
createRouterActor
in interface Pool
- Specified by:
createRouterActor
in interface RouterConfig
- Returns:
- (undocumented)
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 interface Pool
- Returns:
- (undocumented)
withFallback
public RouterConfig withFallback(RouterConfig other)
- Description copied from interface:
RouterConfig
- Overridable merge strategy, by default completely prefers
this
(i.e. no merge).
- Specified by:
withFallback
in interface RouterConfig
- Parameters:
other
- (undocumented)
- Returns:
- (undocumented)