|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectakka.routing.FromConfig
public class FromConfig
Java API: Router configuration which has no default, i.e. external configuration is required.
This can be used when the dispatcher to be used for the head Router needs to be configured (defaults to default-dispatcher).
Constructor Summary | |
---|---|
FromConfig()
|
|
FromConfig(scala.Option<Resizer> resizer,
SupervisorStrategy supervisorStrategy,
java.lang.String routerDispatcher)
|
Method Summary | |
---|---|
static FromConfig |
apply(scala.Option<Resizer> resizer,
SupervisorStrategy supervisorStrategy,
java.lang.String routerDispatcher)
|
Router |
createRouter(ActorSystem system)
Create the actual router, responsible for routing messages to routees. |
RouterActor |
createRouterActor()
INTERNAL API |
static FromConfig$ |
getInstance()
Java API: get the singleton instance |
int |
nrOfInstances()
Initial number of routee instances |
Props |
props()
Props for a group router based on the settings defined by
this instance. |
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. |
static scala.Option<java.lang.String> |
unapply(FromConfig fc)
|
void |
verifyConfig(ActorPath path)
Check that everything is there which is needed. |
FromConfig |
withDispatcher(java.lang.String dispatcherId)
Setting the dispatcher to be used for the router head actor, which handles supervision, death watch and router management messages. |
FromConfig |
withResizer(Resizer resizer)
Setting the resizer to be used. |
FromConfig |
withSupervisorStrategy(SupervisorStrategy strategy)
Setting the supervisor strategy to be used for the “head” Router actor. |
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, newRoutee, props, stopRouterWhenAllRouteesRemoved, usePoolDispatcher |
Methods inherited from interface akka.routing.RouterConfig |
---|
isManagementMessage, routingLogicController, withFallback |
Constructor Detail |
---|
public FromConfig(scala.Option<Resizer> resizer, SupervisorStrategy supervisorStrategy, java.lang.String routerDispatcher)
public FromConfig()
Method Detail |
---|
public static FromConfig$ getInstance()
public static final FromConfig apply(scala.Option<Resizer> resizer, SupervisorStrategy supervisorStrategy, java.lang.String routerDispatcher)
public static final scala.Option<java.lang.String> unapply(FromConfig fc)
public scala.Option<Resizer> resizer()
Pool
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.
resizer
in interface Pool
public SupervisorStrategy supervisorStrategy()
Pool
supervisorStrategy
in interface Pool
public java.lang.String routerDispatcher()
RouterConfig
routerDispatcher
in interface RouterConfig
public Router createRouter(ActorSystem system)
RouterConfig
createRouter
in interface RouterConfig
system
- the ActorSystem this router belongs to
public RouterActor createRouterActor()
createRouterActor
in interface Pool
createRouterActor
in interface RouterConfig
public void verifyConfig(ActorPath path)
RouterConfig
verifyConfig
in interface RouterConfig
path
- (undocumented)public FromConfig withSupervisorStrategy(SupervisorStrategy strategy)
strategy
- (undocumented)
public FromConfig withResizer(Resizer resizer)
resizer
- (undocumented)
public FromConfig withDispatcher(java.lang.String dispatcherId)
dispatcherId
- (undocumented)
public int nrOfInstances()
Pool
nrOfInstances
in interface Pool
public Props props()
Props
for a group router based on the settings defined by
this instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |