Enum TaskGroupTerminateOnErrorStrategy
- java.lang.Object
-
- java.lang.Enum<TaskGroupTerminateOnErrorStrategy>
-
- com.azure.resourcemanager.resources.fluentcore.dag.TaskGroupTerminateOnErrorStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<TaskGroupTerminateOnErrorStrategy>
public enum TaskGroupTerminateOnErrorStrategy extends Enum<TaskGroupTerminateOnErrorStrategy>
Defines task group termination strategies to be used once a task error-ed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TERMINATE_ON_HITTING_LCA_TASKIndicate that on task error, allows any other tasks those are not directly or indirectly depends on the error-ed task to execute, once a LCA (lowest common ancestor) task is hit (at that point any progress cannot be made) emit onError terminal event withRuntimeException.TERMINATE_ON_IN_PROGRESS_TASKS_COMPLETIONIndicate that on task error, allows for any currently executing tasks to finish and emit onError terminal event withRuntimeException.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskGroupTerminateOnErrorStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static TaskGroupTerminateOnErrorStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TERMINATE_ON_IN_PROGRESS_TASKS_COMPLETION
public static final TaskGroupTerminateOnErrorStrategy TERMINATE_ON_IN_PROGRESS_TASKS_COMPLETION
Indicate that on task error, allows for any currently executing tasks to finish and emit onError terminal event withRuntimeException. Acronym: IPTC
-
TERMINATE_ON_HITTING_LCA_TASK
public static final TaskGroupTerminateOnErrorStrategy TERMINATE_ON_HITTING_LCA_TASK
Indicate that on task error, allows any other tasks those are not directly or indirectly depends on the error-ed task to execute, once a LCA (lowest common ancestor) task is hit (at that point any progress cannot be made) emit onError terminal event withRuntimeException. Acronym: HLT
-
-
Method Detail
-
values
public static TaskGroupTerminateOnErrorStrategy[] 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 (TaskGroupTerminateOnErrorStrategy c : TaskGroupTerminateOnErrorStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskGroupTerminateOnErrorStrategy 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
-
-