akka Actor DSL Supervision


Example

It is also possible to assign a supervision strategy to these actors with the following:

superviseWith(OneForOneStrategy() {
  case e: Exception if e.getMessage == "hello" ⇒ Stop
  case _: Exception                            ⇒ Resume
})