public enum BackpressureStrategy extends java.lang.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
OnNext events are written without any buffering or dropping.
|
Modifier and Type | Method and Description |
---|---|
static BackpressureStrategy |
valueOf(java.lang.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
Useful when one applies one of the custom-parameter onBackpressureXXX operators.
public static final BackpressureStrategy ERROR
public static final BackpressureStrategy BUFFER
public static final BackpressureStrategy DROP
public static final BackpressureStrategy LATEST
public static BackpressureStrategy[] values()
for (BackpressureStrategy c : BackpressureStrategy.values()) System.out.println(c);
public static BackpressureStrategy 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 null