!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

@ -475,17 +475,6 @@ Remote actor addresses may also be looked up, if :ref:`remoting <remoting-scala>
An example demonstrating actor look-up is given in :ref:`remote-sample-scala`.
.. 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
=========================

View file

@ -193,13 +193,6 @@ Watching Remote Actors
Watching a remote actor is not different than watching a local actor, as described in
:ref:`deathwatch-scala`.
.. warning::
*Caveat:* Watching an ``ActorRef`` acquired with ``actorFor`` does not trigger
``Terminated`` for lost connections. ``actorFor`` is deprecated in favor of
``actorSelection``. Acquire the ``ActorRef`` to watch with ``Identify`` and
``ActorIdentity`` as described in :ref:`actorSelection-scala`.
Failure Detector
----------------