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