object SupervisorStrategy extends SupervisorStrategyLowPriorityImplicits
- Source
- FaultHandling.scala
- Alphabetic
- By Inheritance
- SupervisorStrategy
- SupervisorStrategyLowPriorityImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
val
defaultDecider: Decider
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 otherException
types. The error is escalated if it's aThrowable
, i.e.Error
. -
final
val
defaultStrategy: SupervisorStrategy
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.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
escalate: Escalate.type
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.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
makeDecider(func: JDecider): Decider
Converts a Java Decider into a Scala Decider
-
def
makeDecider(flat: Iterable[CauseDirective]): 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.
-
def
makeDecider(trapExit: Iterable[Class[_ <: Throwable]]): Decider
Decider builder which just checks whether one of the given Throwables matches the cause and restarts, otherwise escalates.
-
def
makeDecider(trapExit: Seq[Class[_ <: Throwable]]): Decider
Decider builder which just checks whether one of the given Throwables matches the cause and restarts, otherwise escalates.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
restart: Restart.type
Java API: Returning this directive discards the old Actor instance and replaces it with a new, then resumes message processing.
-
def
resume: Resume.type
Java API: Returning this directive resumes message processing for the failed Actor
-
implicit
def
seqCauseDirective2Decider(trapExit: Iterable[CauseDirective]): Decider
Implicit conversion from
Seq
of Cause-Directive pairs to aDecider
.Implicit conversion from
Seq
of Cause-Directive pairs to aDecider
. See makeDecider(causeDirective).- Definition Classes
- SupervisorStrategyLowPriorityImplicits
-
implicit
def
seqThrowable2Decider(trapExit: Seq[Class[_ <: Throwable]]): Decider
Implicit conversion from
Seq
of Throwables to aDecider
.Implicit conversion from
Seq
of Throwables to aDecider
. This maps the given Throwables to restarts, otherwise escalates. -
def
stop: Stop.type
Java API: Returning this directive stops the Actor
-
final
val
stoppingStrategy: SupervisorStrategy
This strategy resembles Erlang in that failing children are always terminated (one-for-one).
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
object
Escalate extends Directive with Product with Serializable
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.
-
object
Restart extends Directive with Product with Serializable
Discards the old Actor instance and replaces it with a new, then resumes message processing.
-
object
Resume extends Directive with Product with Serializable
Resumes message processing for the failed Actor
-
object
Stop extends Directive with Product with Serializable
Stops the Actor