akka.routing
Class CustomRouterConfig

java.lang.Object
  extended by akka.routing.CustomRouterConfig
All Implemented Interfaces:
RouterConfig

public abstract class CustomRouterConfig
extends java.lang.Object
implements RouterConfig

Java API for a custom router factory.

See Also:
RouterConfig

Constructor Summary
CustomRouterConfig()
           
 
Method Summary
abstract  CustomRoute createCustomRoute(RouteeProvider routeeProvider)
           
 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.
 
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, stopRouterWhenAllRouteesRemoved, supervisorStrategy, toAll, verifyConfig, withFallback
 

Constructor Detail

CustomRouterConfig

public CustomRouterConfig()
Method Detail

createRoute

public scala.PartialFunction<scala.Tuple2<ActorRef,java.lang.Object>,scala.collection.immutable.Iterable<Destination>> createRoute(RouteeProvider routeeProvider)
Description copied from interface: RouterConfig
Implement the routing logic by returning a partial function of partial function from (sender, message) to a set of destinations. This 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.

Specified by:
createRoute in interface RouterConfig

createCustomRoute

public abstract CustomRoute createCustomRoute(RouteeProvider routeeProvider)