title: Akka start and access actors returned data
body: <p>I've actor <code>MainActor</code> which initializes and send messages for two other sub and expecting to get a result back. So <code>MainActor</code> has two child actors <code>SubActorA</code> and <code>SubActorB</code>. </p>
  
  <p>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 <code>MainActor</code>) </p>
  
  <p>For example I have 100 ms for both tasks. If <code>SubActorA</code> has returned data in 70 ms but <code>SubActorB</code> 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. </p>
  
  <p>Questions:</p>
  
  <ol>
  <li><p>How do I limit whole execution for 100 ms so that in future I would be able to access data partially from each actor?</p></li>
  <li><p>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 <code>UntypedActor</code> and sending messages to higher level. I have tried to create a <code>WrapperHandler</code> which would initialize <code>MainActor</code>but unfortunately getting exception <code>You have to use one of the 'actorOf' factory methods to create a new actor.</code> Of course I can do that using <code>actorOf</code> method and invoke <code>.tell()</code> 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 extending <code>UntypedActor</code> and not overriding <code>onRecieve()</code> method anymore? </p></li>
  </ol>
  
  <p>Thanks for any help!</p>