|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectakka.routing.CustomRouterConfig
public abstract class CustomRouterConfig
Java API for a custom router factory.
RouterConfig| Constructor Summary | |
|---|---|
CustomRouterConfig()
|
|
| Method Summary | |
|---|---|
abstract CustomRoute |
createCustomRoute(RouteeProvider routeeProvider)
|
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. |
| 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, routerDispatcher, supervisorStrategy, toAll, verifyConfig, withFallback |
| Constructor Detail |
|---|
public CustomRouterConfig()
| Method Detail |
|---|
public scala.PartialFunction<scala.Tuple2<ActorRef,java.lang.Object>,scala.collection.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 abstract CustomRoute createCustomRoute(RouteeProvider routeeProvider)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||