Package no.digipost.concurrent
Enum TargetState.TaskControl
- All Implemented Interfaces:
Serializable,Comparable<TargetState.TaskControl>,java.lang.constant.Constable
- Enclosing interface:
TargetState
Control signals returned from tasks to control
execution with
TargetState.untilThen(Supplier, Consumer)-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe execution is immediately stopped, even ifTargetState.yet()still returnsfalse.The task will be tried repeated, unlessTargetState.yet()returnstrue. -
Method Summary
Modifier and TypeMethodDescriptionstatic TargetState.TaskControlReturns 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 Details
-
TRY_REPEAT
The task will be tried repeated, unlessTargetState.yet()returnstrue. -
EXIT
The execution is immediately stopped, even ifTargetState.yet()still returnsfalse.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-