Reputation: 31
I have a hierarchy of singleton actors. The parent supervises and coordinates the children. I need to keep child actors running when the coordinator is restarted. Is there a way to prevent child actors from restarting when their parent is restarted or should I rethink my actor hierarchy? I have been looking into akka supervision strategy but couldn't find a definitive answer.
Upvotes: 0
Views: 373
Reputation: 11479
Children are restarted in the preRestart
callback, so if you override it on the parent and do not call super.preRestart
the children will not be restarted when the parent is.
Upvotes: 1