|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.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(java.lang.String routerDispatcher)
|
Method Summary | |
---|---|
static FromConfig |
apply(java.lang.String routerDispatcher)
|
scala.PartialFunction<scala.Tuple2<ActorRef,java.lang.Object>,scala.collection.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. |
static FromConfig$ |
getInstance()
Java API: get the singleton instance |
java.lang.String |
routerDispatcher()
Dispatcher ID to use for running the “head” actor, i.e. the Router . |
SupervisorStrategy |
supervisorStrategy()
SupervisorStrategy for the created Router actor. |
static scala.Option<java.lang.String> |
unapply(FromConfig fc)
|
void |
verifyConfig()
Check that everything is there which is needed. |
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 |
---|
createActor, createRouteeProvider, resizer, toAll, withFallback |
Constructor Detail |
---|
public FromConfig(java.lang.String routerDispatcher)
public FromConfig()
Method Detail |
---|
public static FromConfig$ getInstance()
public static final FromConfig apply(java.lang.String routerDispatcher)
public static final scala.Option<java.lang.String> unapply(FromConfig fc)
public java.lang.String routerDispatcher()
RouterConfig
Router
.
routerDispatcher
in interface RouterConfig
public void verifyConfig()
RouterConfig
verifyConfig
in interface RouterConfig
public scala.PartialFunction<scala.Tuple2<ActorRef,java.lang.Object>,scala.collection.Iterable<Destination>> createRoute(RouteeProvider routeeProvider)
RouterConfig
Route
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 RouterConfig
public SupervisorStrategy supervisorStrategy()
RouterConfig
supervisorStrategy
in interface RouterConfig
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |