public static enum SupervisorActor.RestartStrategy extends Enum<SupervisorActor.RestartStrategy>
PERMANENET
child dies of any cause, or a
TRANSIENT
child dies an unnatural death (caused by an exception).Enum Constant and Description |
---|
ALL_FOR_ONE
Kill all surviving children, and restart them all.
|
ESCALATE
Kill the supervisor along with all children.
|
ONE_FOR_ONE
Restart the dead actor.
|
REST_FOR_ONE
Kill all children that were added to the supervisor after the addition of the dead actor, and restart them all
(including the actor whose death triggered the strategy).
|
Modifier and Type | Method and Description |
---|---|
static SupervisorActor.RestartStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SupervisorActor.RestartStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SupervisorActor.RestartStrategy ESCALATE
public static final SupervisorActor.RestartStrategy ONE_FOR_ONE
public static final SupervisorActor.RestartStrategy ALL_FOR_ONE
public static final SupervisorActor.RestartStrategy REST_FOR_ONE
public static SupervisorActor.RestartStrategy[] values()
for (SupervisorActor.RestartStrategy c : SupervisorActor.RestartStrategy.values()) System.out.println(c);
public static SupervisorActor.RestartStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null