Object/Class

akka.actor

SupervisorStrategy

Related Docs: class SupervisorStrategy | package actor

Permalink

object SupervisorStrategy extends SupervisorStrategyLowPriorityImplicits

Source
FaultHandling.scala
Linear Supertypes
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. All

Type Members

  1. type CauseDirective = (Class[_ <: Throwable], Directive)

    Permalink
  2. type Decider = PartialFunction[Throwable, Directive]

    Permalink
  3. sealed trait Directive extends AnyRef

    Permalink
  4. type JDecider = Function[Throwable, Directive]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Escalate extends Directive with Product with Serializable

    Permalink

    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.

  5. object Restart extends Directive with Product with Serializable

    Permalink

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

  6. object Resume extends Directive with Product with Serializable

    Permalink

    Resumes message processing for the failed Actor

  7. object Stop extends Directive with Product with Serializable

    Permalink

    Stops the Actor

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  10. final val defaultDecider: Decider

    Permalink

    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.

  11. final val defaultStrategy: SupervisorStrategy

    Permalink

    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.

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def escalate: Escalate.type

    Permalink

    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.

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def makeDecider(func: JDecider): Decider

    Permalink

    Converts a Java Decider into a Scala Decider

  19. def makeDecider(flat: Iterable[CauseDirective]): Decider

    Permalink

    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.

  20. def makeDecider(trapExit: Iterable[Class[_ <: Throwable]]): Decider

    Permalink

    Decider builder which just checks whether one of the given Throwables matches the cause and restarts, otherwise escalates.

  21. def makeDecider(trapExit: Seq[Class[_ <: Throwable]]): Decider

    Permalink

    Decider builder which just checks whether one of the given Throwables matches the cause and restarts, otherwise escalates.

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  25. def restart: Restart.type

    Permalink

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

  26. def resume: Resume.type

    Permalink

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

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

    Permalink

    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
  28. implicit def seqThrowable2Decider(trapExit: Seq[Class[_ <: Throwable]]): Decider

    Permalink

    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.

  29. def stop: Stop.type

    Permalink

    Java API: Returning this directive stops the Actor

  30. final val stoppingStrategy: SupervisorStrategy

    Permalink

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

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped