akka.cluster.routing
Class ClusterRouterConfig

java.lang.Object
  extended by 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

Constructor Summary
ClusterRouterConfig(DeprecatedRouterConfig local, ClusterRouterSettings settings)
           
 
Method Summary
 RouterActor createRouterActor()
          INTERNAL API
 DeprecatedRouterConfig local()
           
 Routee newRoutee(Props routeeProps, ActorContext context)
          INTERNAL API
 int nrOfInstances()
          Initial number of routee instances
 scala.collection.immutable.Iterable<java.lang.String> paths()
           
 scala.Option<Resizer> resizer()
          Pool with dynamically resizable number of routees return the Resizer to use.
 ClusterRouterSettings settings()
           
 SupervisorStrategy supervisorStrategy()
          SupervisorStrategy for the head actor, i.e.
 RouterConfig withFallback(RouterConfig other)
          Overridable merge strategy, by default completely prefers this (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface akka.routing.Group
props, routeeFor
 
Methods inherited from interface akka.routing.Pool
enrichWithPoolDispatcher, props, stopRouterWhenAllRouteesRemoved, usePoolDispatcher
 
Methods inherited from interface akka.routing.RouterConfig
createRouter, isManagementMessage, routerDispatcher, routingLogicController, verifyConfig
 
Methods inherited from interface akka.cluster.routing.ClusterRouterConfigBase
createRouter, isManagementMessage, routerDispatcher, routingLogicController, stopRouterWhenAllRouteesRemoved
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

ClusterRouterConfig

public ClusterRouterConfig(DeprecatedRouterConfig local,
                           ClusterRouterSettings settings)
Method Detail

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)