o

akka.typed

Failed

object Failed

FIXME correct this documentation when the Restarter behavior has been implemented

The parent of an actor decides upon the fate of a failed child actor by encapsulating its next behavior in one of the four wrappers defined within this class.

Failure responses have an associated precedence that ranks them, which is in descending importance:

  • Escalate
  • Stop
  • Restart
  • Resume
Source
MessageAndSignals.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Failed
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Decision extends AnyRef

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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. object Escalate extends Decision with Product with Serializable

    The default response to a failure in a child actor is to escalate the failure, entailing that the parent actor fails as well.

    The default response to a failure in a child actor is to escalate the failure, entailing that the parent actor fails as well. This is equivalent to an exception unwinding the call stack, but it applies to the supervision hierarchy instead.

    Annotations
    @SerialVersionUID()
  21. object NoFailureResponse extends Decision with Product with Serializable
    Annotations
    @SerialVersionUID()
  22. object Restart extends Decision with Product with Serializable

    Restarting the child actor means resetting its behavior to the initial one that was provided during its creation (i.e.

    Restarting the child actor means resetting its behavior to the initial one that was provided during its creation (i.e. the one which was passed into the Props constructor). The previously failed behavior will receive a PreRestart signal before this happens and the replacement behavior will receive a PostRestart signal afterwards.

    Annotations
    @SerialVersionUID()
  23. object Resume extends Decision with Product with Serializable

    Resuming the child actor means that the result of processing the message on which it failed is just ignored, the previous state will be used to process the next message.

    Resuming the child actor means that the result of processing the message on which it failed is just ignored, the previous state will be used to process the next message. The message that triggered the failure will not be processed again.

    Annotations
    @SerialVersionUID()
  24. object Stop extends Decision with Product with Serializable

    Stopping the child actor will free its resources and eventually (asynchronously) unregister its name from the parent.

    Stopping the child actor will free its resources and eventually (asynchronously) unregister its name from the parent. Completion of this process can be observed by watching the child actor and reacting to its Terminated signal.

    Annotations
    @SerialVersionUID()

Inherited from AnyRef

Inherited from Any

Ungrouped