|
|||||||||
| 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 RouterConfig,
which makes it possible to mix this with the built-in routers such as
RoundRobinRouter or custom routers.
| Constructor Summary | |
|---|---|
RemoteRouterConfig(RouterConfig local,
Address[] nodes)
|
|
RemoteRouterConfig(RouterConfig local,
scala.collection.Iterable<Address> nodes)
|
|
RemoteRouterConfig(RouterConfig local,
java.lang.Iterable<Address> nodes)
|
|
| Method Summary | |
|---|---|
Router |
createActor()
The router "head" actor. |
scala.PartialFunction<scala.Tuple2<ActorRef,java.lang.Object>,scala.collection.immutable.Iterable<Destination>> |
createRoute(RouteeProvider routeeProvider)
Implement the routing logic by returning a partial function of partial function from (sender, message) to a set of destinations. |
RemoteRouteeProvider |
createRouteeProvider(ActorContext context,
Props routeeProps)
The RouteeProvider responsible for creating or
looking up routees. |
RouterConfig |
local()
|
scala.collection.Iterable<Address> |
nodes()
|
scala.Option<Resizer> |
resizer()
Routers with dynamically resizable number of routees return the Resizer
to use. |
java.lang.String |
routerDispatcher()
Dispatcher ID to use for running the “head” actor, i.e. |
SupervisorStrategy |
supervisorStrategy()
SupervisorStrategy for the created Router actor. |
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.RouterConfig |
|---|
stopRouterWhenAllRouteesRemoved, toAll, verifyConfig |
| Methods inherited from interface scala.Product |
|---|
productArity, productElement, productIterator, productPrefix |
| Methods inherited from interface scala.Equals |
|---|
canEqual, equals |
| Constructor Detail |
|---|
public RemoteRouterConfig(RouterConfig local,
scala.collection.Iterable<Address> nodes)
public RemoteRouterConfig(RouterConfig local,
java.lang.Iterable<Address> nodes)
public RemoteRouterConfig(RouterConfig local,
Address[] nodes)
| Method Detail |
|---|
public RouterConfig local()
public scala.collection.Iterable<Address> nodes()
public RemoteRouteeProvider createRouteeProvider(ActorContext context,
Props routeeProps)
RouterConfigRouteeProvider responsible for creating or
looking up routees. It's used in createRoute to register routees,
and also from Resizer.
createRouteeProvider in interface RouterConfigpublic scala.PartialFunction<scala.Tuple2<ActorRef,java.lang.Object>,scala.collection.immutable.Iterable<Destination>> createRoute(RouteeProvider routeeProvider)
RouterConfigRoute will be applied for each incoming message.
When createRoute is called the routees should also be registered,
typically by using createRoutees or registerRouteesFor of the
supplied RouteeProvider.
createRoute in interface RouterConfigpublic Router createActor()
RouterConfig
createActor in interface RouterConfigpublic SupervisorStrategy supervisorStrategy()
RouterConfig
supervisorStrategy in interface RouterConfigpublic java.lang.String routerDispatcher()
RouterConfigRouter.
routerDispatcher in interface RouterConfigpublic scala.Option<Resizer> resizer()
RouterConfigResizer
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 RouterConfigpublic RouterConfig withFallback(RouterConfig other)
RouterConfig
withFallback in interface RouterConfig
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||