Docs: Cleanup of routing
(cherry picked from commit 744d4c2dd626913898ed1456bb5fc287236e83a2)
This commit is contained in:
parent
97105ba625
commit
18b58d9f63
2 changed files with 19 additions and 12 deletions
|
|
@ -1,8 +1,8 @@
|
|||
Routing (Java)
|
||||
==============
|
||||
|
||||
**UntypedDispatcher**
|
||||
---------------------
|
||||
UntypedDispatcher
|
||||
-----------------
|
||||
|
||||
An UntypedDispatcher is an actor that routes incoming messages to outbound actors.
|
||||
|
||||
|
|
@ -42,8 +42,8 @@ An UntypedDispatcher is an actor that routes incoming messages to outbound actor
|
|||
dispatcher.sendOneWay("Ping"); //Prints "Pinger: Ping"
|
||||
dispatcher.sendOneWay("Pong"); //Prints "Ponger: Pong"
|
||||
|
||||
**UntypedLoadBalancer**
|
||||
-----------------------
|
||||
UntypedLoadBalancer
|
||||
-------------------
|
||||
|
||||
An UntypedLoadBalancer is an actor that forwards messages it receives to a boundless sequence of destination actors.
|
||||
|
||||
|
|
@ -88,6 +88,7 @@ An UntypedLoadBalancer is an actor that forwards messages it receives to a bound
|
|||
|
||||
You can also send a 'new Routing.Broadcast(msg)' message to the router to have it be broadcasted out to all the actors it represents.
|
||||
|
||||
`<code format="java">`_
|
||||
router.sendOneWay(new Routing.Broadcast(new PoisonPill()));
|
||||
`<code>`_
|
||||
.. code-block:: java
|
||||
|
||||
router.sendOneWay(new Routing.Broadcast(new PoisonPill()));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue