Packages

object SupervisorStrategy extends SupervisorStrategyLowPriorityImplicits

Source
FaultHandling.scala
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SupervisorStrategy
  2. SupervisorStrategyLowPriorityImplicits
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type CauseDirective = (Class[_ <: Throwable], Directive)
  2. type Decider = PartialFunction[Throwable, Directive]
  3. sealed trait Directive extends AnyRef
  4. type JDecider = Function[Throwable, Directive]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. 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 other Exception types. The error is escalated if it's a Throwable, i.e. Error.

  7. 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.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. 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.

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def makeDecider(func: JDecider): Decider

    Converts a Java Decider into a Scala Decider

  15. 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.

  16. 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.

  17. 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.

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  21. 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

  22. def restart: Restart

    Java API: Returning this directive discards the old Actor instance and replaces it with a new, then resumes message processing.

  23. 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

  24. def resume: Resume

    Java API: Returning this directive resumes message processing for the failed Actor

  25. implicit def seqCauseDirective2Decider(trapExit: Iterable[CauseDirective]): Decider

    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).

    Definition Classes
    SupervisorStrategyLowPriorityImplicits
  26. implicit def seqThrowable2Decider(trapExit: Seq[Class[_ <: Throwable]]): Decider

    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.

  27. 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

  28. def stop: Stop

    Java API: Returning this directive stops the Actor

  29. final val stoppingStrategy: SupervisorStrategy

    This strategy resembles Erlang in that failing children are always terminated (one-for-one).

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. 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.

  36. case object Restart extends Restart with Product with Serializable

    Discards the old Actor instance and replaces it with a new, then resumes message processing.

  37. case object Resume extends Resume with Product with Serializable

    Resumes message processing for the failed Actor

  38. case object Stop extends Stop with Product with Serializable

    Stops the Actor

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped