Javatpoint Logo
Javatpoint Logo

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




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback

  • Send your Feedback to feedback@javatpoint.com

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA