Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个单身演员的层次结构。家长监督和协调孩子。当协调器重新启动时,我需要让子演员继续运行。有没有办法防止子演员在他们的父母重新启动时重新启动,或者我应该重新考虑我的演员层次结构?我一直在研究 akka 监督策略,但找不到明确的答案。
子级在preRestart回调中重新启动,因此如果您在父级上覆盖它并且不调用super.preRestart子级,则不会在父级时重新启动子级。
preRestart
super.preRestart