Thank you for the reply. And, i understand that in preRestart, the parent unwatches the child. And, hence if i override this method to do nothing, i should get the context.children() value correct. But when i tried doing so, i still see empty collection. Not sure what i am doing wrong.
On Thursday, 9 February 2017 22:14:48 UTC+5:30, Rafał Krzewski wrote: > > Check preRestart method implementation as described in > http://doc.akka.io/docs/akka/2.4/scala/actors.html#Actor_API > It should answer your question :) > > Cheers, > Rafał > > W dniu czwartek, 9 lutego 2017 17:18:24 UTC+1 użytkownik Achin Gupta > napisał: >> >> When the System is restarted, the context.children() call returns zero >> children for a particular parent. Before restart, context.children() >> returned the actual count of children that parent had. >> >> Can someone please let me know how can we get the children ActorRef for a >> parent after restart? >> > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
