public enum BackpressureStrategy extends Enum<BackpressureStrategy>
Enum Constant and Description |
---|
BUFFER
Buffers all
onNext values until the downstream consumes it. |
DROP
Drops the most recent
onNext value if the downstream can't keep up. |
ERROR
Signals a
MissingBackpressureException
in case the downstream can't keep up. |
LATEST
Keeps only the latest
onNext value, overwriting any previous value if the
downstream can't keep up. |
MISSING
The
onNext events are written without any buffering or dropping. |
Modifier and Type | Method and Description |
---|---|
static BackpressureStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BackpressureStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BackpressureStrategy MISSING
onNext
events are written without any buffering or dropping.
Downstream has to deal with any overflow.
Useful when one applies one of the custom-parameter onBackpressureXXX operators.
public static final BackpressureStrategy ERROR
MissingBackpressureException
in case the downstream can't keep up.public static final BackpressureStrategy BUFFER
onNext
values until the downstream consumes it.public static final BackpressureStrategy DROP
onNext
value if the downstream can't keep up.public static final BackpressureStrategy LATEST
onNext
value, overwriting any previous value if the
downstream can't keep up.public static BackpressureStrategy[] values()
for (BackpressureStrategy c : BackpressureStrategy.values()) System.out.println(c);
public static BackpressureStrategy 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