Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1362

How to return a value of specific type?

$
0
0

I have a Manager class that supports different Actor commands and is the entry point for my Actor system. It routes the messages to the appropriate Worker through a Router. The main method calls the Manager through Ask pattern.

The worker wants to return a value of a specific type. Main shall use this value subsequently.

One way to accomplish is to define a new message in the Manager class and the Worker passes the value to the Manager through this new message. This approach involves a lot of message exchange compared to the traditional procedural approach.

Please suggest to me any other way to accomplish this.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1362

Trending Articles