Merge pull request #1776 from akka/wip-3663-balancing-disp-patriknw

+act #3663 Package BalancingDispatcher for usage in router pool
This commit is contained in:
Patrik Nordwall 2013-10-17 05:09:43 -07:00
commit d4cce379ce
22 changed files with 140 additions and 47 deletions

View file

@ -193,7 +193,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)
}