156
Akka Actor Forward Message
You can forward a message from one actor to another. In this case, address/reference of an Actor is maintained even though the message is going through a ‘mediator’.
It is helpful when writing actors that work as routers, load-balancers, replicators etc.
Akka Actor Forward Message Example
Output:
Message received from deadLetters : Hello message forwarded to child Actor Message received from RootActor : Hello
Next TopicAkka Stopping Actors