object SupervisorStrategy extends SupervisorStrategyLowPriorityImplicits
- Alphabetic
- By Inheritance
- SupervisorStrategy
- SupervisorStrategyLowPriorityImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- 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 pekko.actor.ActorInitializationException, pekko.actor.ActorKilledException, or pekko.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: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def escalate: Escalate
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[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def restart(logLevel: LogLevel): Directive
Returning this directive discards the old Actor instance and replaces it with a new, then resumes message processing.
Returning this directive discards the old Actor instance and replaces it with a new, then resumes message processing.
- logLevel
Log level which will be used to log the failure
- def restart: Restart
Java API: Returning this directive discards the old Actor instance and replaces it with a new, then resumes message processing.
- def resume(logLevel: LogLevel): Directive
Returning this directive resumes message processing for the failed Actor.
Returning this directive resumes message processing for the failed Actor.
- logLevel
Log level which will be used to log the failure
- def resume: Resume
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(logLevel: LogLevel): Directive
Returning this directive stops the Actor
Returning this directive stops the Actor
- logLevel
Log level which will be used to log the failure
- def stop: Stop
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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- case 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.
- case object Restart extends Restart with Product with Serializable
Discards the old Actor instance and replaces it with a new, then resumes message processing.
- case object Resume extends Resume with Product with Serializable
Resumes message processing for the failed Actor
- case object Stop extends Stop with Product with Serializable
Stops the Actor