From c4bca058a53467f0c811b4b35ed2883873faa594 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Wed, 9 May 2012 13:55:20 +0200 Subject: [PATCH] Clarifying that you cannot change dispatcher after the actor has been created. --- akka-docs/scala/routing.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/akka-docs/scala/routing.rst b/akka-docs/scala/routing.rst index 43a9066edd..22fac9c226 100644 --- a/akka-docs/scala/routing.rst +++ b/akka-docs/scala/routing.rst @@ -364,6 +364,12 @@ routing is not so important (i.e. no consistent hashing or round-robin is required); this enables newly created routees to pick up work immediately by stealing it from their siblings. +.. note:: + + If you provide a collection of actors to route to, then they will still use the same dispatcher + that was configured for them in their ``Props``, it is not possible to change an actors dispatcher + after it has been created. + The “head” router, of course, cannot run on the same balancing dispatcher, because it does not process the same messages, hence this special actor does not use the dispatcher configured in :class:`Props`, but takes the