Enum Supervisor.ChildMode
- java.lang.Object
-
- java.lang.Enum<Supervisor.ChildMode>
-
- co.paralleluniverse.actors.behaviors.Supervisor.ChildMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Supervisor.ChildMode>
- Enclosing class:
- Supervisor
public static enum Supervisor.ChildMode extends java.lang.Enum<Supervisor.ChildMode>
Determines whether a child (supervised) actor should be restarted if the supervisor'srestart strategy
states that it should be restarted.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PERMANENT
The child actor should be restarted if it dies for whatever reason if the supervisor'srestart strategy
states that it should be restarted.TEMPORARY
The child actor should never be restarted.TRANSIENT
The child actor should be restarted if it dies of unnatural causes (an exception) if the supervisor'srestart strategy
states that it should be restarted.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Supervisor.ChildMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Supervisor.ChildMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERMANENT
public static final Supervisor.ChildMode PERMANENT
The child actor should be restarted if it dies for whatever reason if the supervisor'srestart strategy
states that it should be restarted.
-
TRANSIENT
public static final Supervisor.ChildMode TRANSIENT
The child actor should be restarted if it dies of unnatural causes (an exception) if the supervisor'srestart strategy
states that it should be restarted.
-
TEMPORARY
public static final Supervisor.ChildMode TEMPORARY
The child actor should never be restarted.
-
-
Method Detail
-
values
public static Supervisor.ChildMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Supervisor.ChildMode c : Supervisor.ChildMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Supervisor.ChildMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-