title: Akka: How to combine OneForOneStrategy and AllForOneStrategy
body: <p>If I define the supervisor strategy for an actor in Scala, how can I use both the <code>OneForOneStrategy</code> and the <code>AllForOneStrategy</code>? Is there a simple way to combine them or do I have to define a custom <code>SupervisorStrategy</code>?
  Here is an example:</p>
  
  <pre><code>class MyActor extends Actor {
    override val supervisorStrategy = OneForOneStrategy() {
      case _: NullPointerException  =&gt; Restart
      case _: FileNotFoundException =&gt; Restart // here I want to restart all children
      case _: Exception             =&gt; Escalate
    }
  }
  </code></pre>
  
  <p>If I have to write my own supervisor strategy, how can I do this? I found no example for that.</p>