Re: [akka-user] Restarting Akka Actor with a new State

2017-08-11 Thread Akka Team
Hi Joe, Watching the child actor before stopping it will give you a Terminated message which will let you know that the child terminated, so that you can start a new one. If the id and powerPlantCfg is needed when starting anew you can put that in the actor state, as a map for keyed by the child

[akka-user] Restarting Akka Actor with a new State

2017-08-07 Thread Joe San
I have a scenario where I have to restart a child Actor from within a parent actor. The restart should happen with the following rules: 1. The start should happen only after stop has been completed 2. Both the stop and start should happen asynchronously I now have the following