Escalates the failure to the supervisor of the supervisor, by rethrowing the cause of the failure, i.e.
Escalates the failure to the supervisor of the supervisor, by rethrowing the cause of the failure, i.e. the supervisor fails with the same exception as the child.
Discards the old Actor instance and replaces it with a new, then resumes message processing.
Resumes message processing for the failed Actor
Stops the Actor
When supervisorStrategy is not specified for an actor this Decider is used by default in the supervisor strategy.
When supervisorStrategy is not specified for an actor this
Decider is used by default in the supervisor strategy.
The child will be stopped when akka.actor.ActorInitializationException,
akka.actor.ActorKilledException, or akka.actor.DeathPactException is
thrown. It will be restarted for other Exception
types.
The error is escalated if it's a Throwable
, i.e. Error
.
When supervisorStrategy is not specified for an actor this is used by default.
When supervisorStrategy is not specified for an actor this is used by default. OneForOneStrategy with decider defined in #defaultDecider.
Java API: Returning this directive escalates the failure to the supervisor of the supervisor, by rethrowing the cause of the failure, i.e.
Java API: Returning this directive escalates the failure to the supervisor of the supervisor, by rethrowing the cause of the failure, i.e. the supervisor fails with the same exception as the child.
Converts a Java Decider into a Scala Decider
Decider builder for Iterables of cause-directive pairs, e.g.
Decider builder for Iterables of cause-directive pairs, e.g. a map obtained from configuration; will sort the pairs so that the most specific type is checked before all its subtypes, allowing carving out subtrees of the Throwable hierarchy.
Decider builder which just checks whether one of the given Throwables matches the cause and restarts, otherwise escalates.
Decider builder which just checks whether one of the given Throwables matches the cause and restarts, otherwise escalates.
Java API: Returning this directive discards the old Actor instance and replaces it with a new, then resumes message processing.
Java API: Returning this directive resumes message processing for the failed Actor
Implicit conversion from Seq
of Cause-Directive pairs to a Decider
.
Implicit conversion from Seq
of Cause-Directive pairs to a Decider
. See makeDecider(causeDirective).
Implicit conversion from Seq
of Throwables to a Decider
.
Implicit conversion from Seq
of Throwables to a Decider
.
This maps the given Throwables to restarts, otherwise escalates.
Java API: Returning this directive stops the Actor
This strategy resembles Erlang in that failing children are always terminated (one-for-one).