public final class Failed extends java.lang.Object implements Signal, scala.Product, scala.Serializable
decide(akka.typed.Failed.Decision)
method. If this is not
done then the default behavior is to escalate the failure, which amounts to
failing this actor with the same exception that the child actor failed with.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(java.lang.Throwable cause,
ActorRef<scala.runtime.Nothing$> child) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
cause() |
ActorRef<scala.runtime.Nothing$> |
child() |
void |
decide(Failed.Decision decision) |
Failed.Decision |
getDecision() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Failed(java.lang.Throwable cause, ActorRef<scala.runtime.Nothing$> child)
public java.lang.Throwable cause()
public ActorRef<scala.runtime.Nothing$> child()
public void decide(Failed.Decision decision)
public Failed.Decision getDecision()