Escalates the failure to the supervisor of the supervisor, by rethrowing the cause of the failure.
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 is used by default.
When supervisorStrategy is not specified for an actor this
is used by default. The child will be stopped when
akka.actor.ActorInitializationException or akka.ActorKilledException
is thrown. It will be restarted for other Exception
types.
The error is escalated if it's a Throwable
, i.e. Error
.
Java API: Returning this directive escalates the failure to the supervisor of the supervisor, by rethrowing the cause of the failure.
Java API: Returning this directive escalates the failure to the supervisor of the supervisor, by rethrowing the cause of the failure. Java API
Converts a Java Decider into a Scala Decider
Decider builder for Iterables of cause-directive pairs, e.
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.
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 Java API
This strategy resembles Erlang in that failing children are always terminated (one-for-one).