I've actor MainActor which initializes and send messages for two other sub and expecting to get a result back. So MainActor has two child actors SubActorA and SubActorB.
Basically I want to build a model when data from sub actors has arrived I would be able to access it somewhere on a higher level (class which initialized MainActor)
For example I have 100 ms for both tasks. If SubActorA has returned data in 70 ms but SubActorB needs more time it would have 30 ms more and after all tasks will be abandoned, but I still interested in data and would like to have an access for it even if some of the sub tasks has time outed.
Questions:
How do I limit whole execution for 100 ms so that in future I would be able to access data partially from each actor?
How do I access data from actor on highest level? I cannot all the time push data to higher level again and again by extending from
UntypedActorand sending messages to higher level. I have tried to create aWrapperHandlerwhich would initializeMainActorbut unfortunately getting exceptionYou have to use one of the 'actorOf' factory methods to create a new actor.Of course I can do that usingactorOfmethod and invoke.tell()method to send a message to the actor which starts all the job. But how do I get a response back if I am not extendingUntypedActorand not overridingonRecieve()method anymore?
Thanks for any help!