!act #13919 Make actorFor internal

* until we can replace all internal usages of it, which
  is only in akka-camel
This commit is contained in:
Patrik Nordwall 2015-05-08 10:25:39 +02:00
parent 082b366881
commit 85a5cc61aa
9 changed files with 52 additions and 93 deletions

View file

@ -484,17 +484,6 @@ Remote actor addresses may also be looked up, if :ref:`remoting <remoting-java>`
An example demonstrating actor look-up is given in :ref:`remote-sample-java`.
.. note::
``actorFor`` is deprecated in favor of ``actorSelection`` because actor references
acquired with ``actorFor`` behaves different for local and remote actors.
In the case of a local actor reference, the named actor needs to exist before the
lookup, or else the acquired reference will be an :class:`EmptyLocalActorRef`.
This will be true even if an actor with that exact path is created after acquiring
the actor reference. For remote actor references acquired with `actorFor` the
behaviour is different and sending messages to such a reference will under the hood
look up the actor by path on the remote system for every message send.
Messages and immutability
=========================