+act #3663 Package BalancingDispatcher for usage in router pool

* In fact, make it easy to define any dedicated dispatcher for a pool
This commit is contained in:
Patrik Nordwall 2013-10-16 13:02:35 +02:00
parent f6179da523
commit 80892762ad
22 changed files with 140 additions and 47 deletions

View file

@ -180,7 +180,8 @@ final case class ClusterRouterPool(local: Pool, settings: ClusterRouterPoolSetti
*/
override private[akka] def newRoutee(routeeProps: Props, context: ActorContext): Routee = {
val name = "c" + childNameCounter.incrementAndGet
val ref = context.asInstanceOf[ActorCell].attachChild(routeeProps, name, systemService = false)
val ref = context.asInstanceOf[ActorCell].attachChild(
local.enrichWithPoolDispatcher(routeeProps, context), name, systemService = false)
ActorRefRoutee(ref)
}