|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectakka.remote.routing.RemoteRouterConfig
public final class RemoteRouterConfig
RouterConfig implementation for remote deployment on defined
target nodes. Delegates other duties to the local Pool,
which makes it possible to mix this with the built-in routers such as
RoundRobinRouter or custom routers.
| Constructor Summary | |
|---|---|
RemoteRouterConfig(Pool local,
Address[] nodes)
|
|
RemoteRouterConfig(Pool local,
scala.collection.Iterable<Address> nodes)
|
|
RemoteRouterConfig(Pool local,
java.lang.Iterable<Address> nodes)
|
|
| Method Summary | |
|---|---|
Router |
createRouter(ActorSystem system)
Create the actual router, responsible for routing messages to routees. |
RouterActor |
createRouterActor()
INTERNAL API |
Pool |
local()
|
Routee |
newRoutee(Props routeeProps,
ActorContext context)
INTERNAL API |
scala.collection.Iterable<Address> |
nodes()
|
int |
nrOfInstances()
Initial number of routee instances |
scala.Option<Resizer> |
resizer()
Pool with dynamically resizable number of routees return the Resizer
to use. |
java.lang.String |
routerDispatcher()
Dispatcher ID to use for running the “head” actor, which handles supervision, death watch and router management messages |
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.Pool |
|---|
enrichWithPoolDispatcher, props, stopRouterWhenAllRouteesRemoved, usePoolDispatcher |
| Methods inherited from interface akka.routing.RouterConfig |
|---|
isManagementMessage, routingLogicController, verifyConfig |
| Methods inherited from interface scala.Product |
|---|
productArity, productElement, productIterator, productPrefix |
| Methods inherited from interface scala.Equals |
|---|
canEqual, equals |
| Constructor Detail |
|---|
public RemoteRouterConfig(Pool local,
scala.collection.Iterable<Address> nodes)
public RemoteRouterConfig(Pool local,
java.lang.Iterable<Address> nodes)
public RemoteRouterConfig(Pool local,
Address[] nodes)
| Method Detail |
|---|
public Pool local()
public scala.collection.Iterable<Address> nodes()
public Router createRouter(ActorSystem system)
RouterConfig
createRouter in interface RouterConfigsystem - the ActorSystem this router belongs to
public int nrOfInstances()
Pool
nrOfInstances in interface Pool
public Routee newRoutee(Props routeeProps,
ActorContext context)
Pool
newRoutee in interface PoolrouteeProps - (undocumented)context - (undocumented)
public RouterActor createRouterActor()
Pool
createRouterActor in interface PoolcreateRouterActor in interface RouterConfigpublic SupervisorStrategy supervisorStrategy()
Pool
supervisorStrategy in interface Poolpublic java.lang.String routerDispatcher()
RouterConfig
routerDispatcher in interface RouterConfigpublic scala.Option<Resizer> resizer()
PoolResizer
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.
resizer in interface Poolpublic RouterConfig withFallback(RouterConfig other)
RouterConfigthis (i.e. no merge).
withFallback in interface RouterConfigother - (undocumented)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||