public class Failed
extends java.lang.Object
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
Modifier and Type | Class and Description |
---|---|
static interface |
Failed.Decision |
static class |
Failed.Escalate$
The default response to a failure in a child actor is to escalate the
failure, entailing that the parent actor fails as well.
|
static class |
Failed.NoFailureResponse$ |
static class |
Failed.Restart$
Restarting the child actor means resetting its behavior to the initial
one that was provided during its creation (i.e.
|
static class |
Failed.Resume$
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.
|
static class |
Failed.Stop$
Stopping the child actor will free its resources and eventually
(asynchronously) unregister its name from the parent.
|
Constructor and Description |
---|
Failed() |