kandi X-RAY | akka-patterns Summary
kandi X-RAY | akka-patterns Summary
akka-patterns
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of akka-patterns
akka-patterns Key Features
akka-patterns Examples and Code Snippets
Community Discussions
Trending Discussions on akka-patterns
QUESTION
I am looking for an example of how to use Akka's pattern Patterns.askWithReplyTo
using Java.
A sample project is available at Github: https://github.com/pcdhan/akka-patterns.git
My challenge is I am unable to include sender's ActorRef in the payload.
A Local Actor ...ANSWER
Answered 2018-Nov-08 at 13:25askWithReplyTo
is not meant to pass the sending actor self
into the message.
askWithReplyTo
expects that you give it a factory function, which get fed the temporary response actor, so if you have a message that you could construct like so:
new MyMessage(ActorRef replyTo)
You could use that with askWithReplyTo
like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install akka-patterns
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page