public static enum ParallelRunner.FailPolicy extends Enum<ParallelRunner.FailPolicy>
ParallelRunner should handle failure of tasks.| Enum Constant and Description |
|---|
FAIL_ONE_FAIL_ALL
If a task fails, all tasks will be tried, but
ParallelRunner.close() will throw the Exception. |
ISOLATE_FAILURES
If a task fails, a warning will be logged, but the
ParallelRunner will still succeed. |
| Modifier and Type | Method and Description |
|---|---|
static ParallelRunner.FailPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParallelRunner.FailPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParallelRunner.FailPolicy ISOLATE_FAILURES
ParallelRunner will still succeed.public static final ParallelRunner.FailPolicy FAIL_ONE_FAIL_ALL
ParallelRunner.close() will throw the Exception.public static ParallelRunner.FailPolicy[] values()
for (ParallelRunner.FailPolicy c : ParallelRunner.FailPolicy.values()) System.out.println(c);
public static ParallelRunner.FailPolicy 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