Clarifying that you cannot change dispatcher after the actor has been created.

This commit is contained in:
Viktor Klang 2012-05-09 13:55:20 +02:00
parent e9b689c665
commit c4bca058a5

View file

@ -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 required); this enables newly created routees to pick up work immediately by
stealing it from their siblings. 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, 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 because it does not process the same messages, hence this special actor does
not use the dispatcher configured in :class:`Props`, but takes the not use the dispatcher configured in :class:`Props`, but takes the