Package no.digipost.concurrent
Enum TargetState.TaskControl
- java.lang.Object
-
- java.lang.Enum<TargetState.TaskControl>
-
- no.digipost.concurrent.TargetState.TaskControl
-
- All Implemented Interfaces:
Serializable,Comparable<TargetState.TaskControl>
- Enclosing interface:
- TargetState
public static enum TargetState.TaskControl extends Enum<TargetState.TaskControl>
Control signals returned from tasks to control execution withTargetState.untilThen(Supplier, Consumer)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXITThe execution is immediately stopped, even ifTargetState.yet()still returnsfalse.TRY_REPEATThe task will be tried repeated, unlessTargetState.yet()returnstrue.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TargetState.TaskControlvalueOf(String name)Returns the enum constant of this type with the specified name.static TargetState.TaskControl[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRY_REPEAT
public static final TargetState.TaskControl TRY_REPEAT
The task will be tried repeated, unlessTargetState.yet()returnstrue.
-
EXIT
public static final TargetState.TaskControl EXIT
The execution is immediately stopped, even ifTargetState.yet()still returnsfalse.
-
-
Method Detail
-
values
public static TargetState.TaskControl[] 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 (TargetState.TaskControl c : TargetState.TaskControl.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TargetState.TaskControl valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-