public enum ParallelFailureHandling extends java.lang.Enum<ParallelFailureHandling> implements BiFunction<java.lang.Long,java.lang.Throwable,ParallelFailureHandling>
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(java.lang.Long t1,
java.lang.Throwable t2)
Calculate a value based on the input values.
|
static ParallelFailureHandling |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic ParallelFailureHandling apply(java.lang.Long t1, java.lang.Throwable t2)
BiFunction
apply
in interface BiFunction<java.lang.Long,java.lang.Throwable,ParallelFailureHandling>
t1
- the first valuet2
- the second value