|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.actor.SupervisorStrategy$
public class SupervisorStrategy$
Field Summary | |
---|---|
static SupervisorStrategy$ |
MODULE$
Static reference to the singleton instance of this Scala object. |
Constructor Summary | |
---|---|
SupervisorStrategy$()
|
Method Summary | |
---|---|
SupervisorStrategy |
defaultStrategy()
When supervisorStrategy is not specified for an actor this is used by default. |
SupervisorStrategy.Escalate$ |
escalate()
Java API: Returning this directive escalates the failure to the supervisor of the supervisor, by rethrowing the cause of the failure. |
scala.Function1<java.lang.Object,SupervisorStrategy.Escalate$> |
escalateDefault()
|
scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> |
makeDecider(java.lang.Class<?>[] trapExit)
Decider builder which just checks whether one of the given Throwables matches the cause and restarts, otherwise escalates. |
scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> |
makeDecider(Function<java.lang.Throwable,SupervisorStrategy.Directive> func)
Converts a Java Decider into a Scala Decider |
scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> |
makeDecider(java.lang.Iterable<java.lang.Class<? extends java.lang.Throwable>> trapExit)
Decider builder which just checks whether one of the given Throwables matches the cause and restarts, otherwise escalates. |
scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> |
makeDecider(scala.collection.Iterable<scala.Tuple2<java.lang.Class<? extends java.lang.Throwable>,SupervisorStrategy.Directive>> flat)
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. |
scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> |
makeDecider(scala.collection.Seq<java.lang.Class<? extends java.lang.Throwable>> trapExit)
Decider builder which just checks whether one of the given Throwables matches the cause and restarts, otherwise escalates. |
SupervisorStrategy.Restart$ |
restart()
Java API: Returning this directive discards the old Actor instance and replaces it with a new, then resumes message processing. |
SupervisorStrategy.Resume$ |
resume()
Java API: Returning this directive resumes message processing for the failed Actor |
scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> |
seqThrowable2Decider(scala.collection.Seq<java.lang.Class<? extends java.lang.Throwable>> trapExit)
Implicit conversion from Seq of Throwables to a Decider . |
SupervisorStrategy.Stop$ |
stop()
Java API: Returning this directive stops the Actor Java API |
SupervisorStrategy |
stoppingStrategy()
This strategy resembles Erlang in that failing children are always terminated (one-for-one). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface akka.actor.SupervisorStrategyLowPriorityImplicits |
---|
seqCauseDirective2Decider |
Field Detail |
---|
public static final SupervisorStrategy$ MODULE$
Constructor Detail |
---|
public SupervisorStrategy$()
Method Detail |
---|
public SupervisorStrategy.Resume$ resume()
public SupervisorStrategy.Restart$ restart()
public SupervisorStrategy.Stop$ stop()
public SupervisorStrategy.Escalate$ escalate()
public final SupervisorStrategy defaultStrategy()
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
.
public final SupervisorStrategy stoppingStrategy()
public scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> seqThrowable2Decider(scala.collection.Seq<java.lang.Class<? extends java.lang.Throwable>> trapExit)
Seq
of Throwables to a Decider
.
This maps the given Throwables to restarts, otherwise escalates.
public scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> makeDecider(java.lang.Class<?>[] trapExit)
public scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> makeDecider(scala.collection.Seq<java.lang.Class<? extends java.lang.Throwable>> trapExit)
public scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> makeDecider(java.lang.Iterable<java.lang.Class<? extends java.lang.Throwable>> trapExit)
public scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> makeDecider(scala.collection.Iterable<scala.Tuple2<java.lang.Class<? extends java.lang.Throwable>,SupervisorStrategy.Directive>> flat)
public scala.PartialFunction<java.lang.Throwable,SupervisorStrategy.Directive> makeDecider(Function<java.lang.Throwable,SupervisorStrategy.Directive> func)
public scala.Function1<java.lang.Object,SupervisorStrategy.Escalate$> escalateDefault()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |