[akka-user] Re: Akka: How to get Children actor on Restart

2017-02-11 Thread Rafał Krzewski
All children actors are stopped when the parent is restarted. The information what the children of the previous actor incarnation were is not useful, because they no loner exist by the time then next incarnation of the parent actor is created. The new incarnation proceeds to create it's childre

[akka-user] Re: Akka: How to get Children actor on Restart

2017-02-09 Thread Achin Gupta
My use case is: Before restart, there are let say 5 children of a parent. Now, i wish to calculate performance and to calculate performance i need participation from all these 5 children. So, after restart, i could just send the same message to all children, after which children will work and

[akka-user] Re: Akka: How to get Children actor on Restart

2017-02-09 Thread Achin Gupta
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 Th

[akka-user] Re: Akka: How to get Children actor on Restart

2017-02-09 Thread Rafał Krzewski
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.childre