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
- Alphabetic
- By Inheritance
- Failed
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()
-
object
NoFailureResponse
extends Decision with Product with Serializable
- Annotations
- @SerialVersionUID()
-
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()
-
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()
-
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()