!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:
parent
082b366881
commit
85a5cc61aa
9 changed files with 52 additions and 93 deletions
|
|
@ -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
|
||||
=========================
|
||||
|
||||
|
|
|
|||
|
|
@ -188,13 +188,6 @@ Watching Remote Actors
|
|||
Watching a remote actor is not different than watching a local actor, as described in
|
||||
:ref:`deathwatch-java`.
|
||||
|
||||
.. 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-java`.
|
||||
|
||||
Failure Detector
|
||||
----------------
|
||||
|
||||
|
|
|
|||
|
|
@ -438,17 +438,6 @@ Remote actor addresses may also be looked up, if :ref:`remoting <remoting-java>`
|
|||
|
||||
An example demonstrating remote actor look-up is given in :ref:`remote-sample-java`.
|
||||
|
||||
.. note::
|
||||
|
||||
``actorFor`` is deprecated in favor of ``actorSelection`` because actor references
|
||||
acquired with ``actorFor`` behave differently 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
|
||||
=========================
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue