Top Description Fields Constructors Methods
io.reactivex.parallel

public final Enum ParallelFailureHandling

extends Enum<ParallelFailureHandling>
implements BiFunction<Long, Throwable, ParallelFailureHandling>
Class Inheritance
All Implemented Interfaces
io.reactivex.functions.BiFunction
Imports
io.reactivex.functions.BiFunction

Enumerations for handling failure within a parallel operator.

History: 2.0.8 - experimental

Since
2.2

Field Summary

Modifier and TypeField and Description
public static final ParallelFailureHandling
ERROR

The current rail is stopped and the error is signalled.

public static final ParallelFailureHandling
RETRY

Retry the current value.

public static final ParallelFailureHandling
SKIP

The current value and error is ignored and the rail resumes with the next item.

public static final ParallelFailureHandling
STOP

The current rail is stopped and the error is dropped.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ParallelFailureHandling
apply(Long
the first value
t1
,
Throwable
the second value
t2
)

Implements io.reactivex.functions.BiFunction.apply.

Calculate a value based on the input values.
public static ParallelFailureHandling
public static ParallelFailureHandling[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ERRORback to summary
public static final ParallelFailureHandling ERROR

The current rail is stopped and the error is signalled.

RETRYback to summary
public static final ParallelFailureHandling RETRY

Retry the current value.

SKIPback to summary
public static final ParallelFailureHandling SKIP

The current value and error is ignored and the rail resumes with the next item.

STOPback to summary
public static final ParallelFailureHandling STOP

The current rail is stopped and the error is dropped.

Constructor Detail

ParallelFailureHandlingback to summary
private ParallelFailureHandling()

Method Detail

applyback to summary
public ParallelFailureHandling apply(Long t1, Throwable t2)

Implements io.reactivex.functions.BiFunction.apply.

Doc from io.reactivex.functions.BiFunction.apply.

Calculate a value based on the input values.

Parameters
t1:Long

the first value

t2:Throwable

the second value

Returns:ParallelFailureHandling

the result value

Annotations
@Override
valueOfback to summary
public static ParallelFailureHandling valueOf(String name)
valuesback to summary
public static ParallelFailureHandling[] values()