public enum ParallelFailureHandling extends Enum<ParallelFailureHandling> implements BiFunction<Long,Throwable,ParallelFailureHandling>
History: 2.0.8 - experimental
Enum Constant and Description |
---|
ERROR
The current rail is stopped and the error is signalled.
|
RETRY
Retry the current value.
|
SKIP
The current value and error is ignored and the rail resumes with the next item.
|
STOP
The current rail is stopped and the error is dropped.
|
Modifier and Type | Method and Description |
---|---|
ParallelFailureHandling |
apply(Long t1,
Throwable t2)
Calculate a value based on the input values.
|
static ParallelFailureHandling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParallelFailureHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParallelFailureHandling STOP
public static final ParallelFailureHandling ERROR
public static final ParallelFailureHandling SKIP
public static final ParallelFailureHandling RETRY
public static ParallelFailureHandling[] values()
for (ParallelFailureHandling c : ParallelFailureHandling.values()) System.out.println(c);
public static ParallelFailureHandling 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 nullpublic ParallelFailureHandling apply(Long t1, Throwable t2)
BiFunction
apply
in interface BiFunction<Long,Throwable,ParallelFailureHandling>
t1
- the first valuet2
- the second value