Javatpoint Logo
Javatpoint Logo

Akka Actor Reply Messages

You can reply to a message by using sender() method. This method gives you ActorRef which is a instance of sender Actor. You can also store this reference. Replying to a message is simple, you just need to use sender() ! ReplyMsg.

If there is no sender i.e. a message which is sent without an actor or future context, the default sender is a 'dead-letter' actor reference.

Akka Actor Replying Message Example


Message recieved from deadLetters massage: Hello
Message recieved from RootActor massage: Hello Child
Replying to RootActor
Message recieved from ActorChild massage: I got you message

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA