public static enum FlowableEmitter.BackpressureMode extends java.lang.Enum<FlowableEmitter.BackpressureMode>
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.
|
NONE
OnNext events are written without any buffering or dropping.
|
Modifier and Type | Method and Description |
---|---|
static FlowableEmitter.BackpressureMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FlowableEmitter.BackpressureMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlowableEmitter.BackpressureMode NONE
Useful when one applies one of the custom-parameter onBackpressureXXX operators.
public static final FlowableEmitter.BackpressureMode ERROR
public static final FlowableEmitter.BackpressureMode BUFFER
public static final FlowableEmitter.BackpressureMode DROP
public static final FlowableEmitter.BackpressureMode LATEST
public static FlowableEmitter.BackpressureMode[] values()
for (FlowableEmitter.BackpressureMode c : FlowableEmitter.BackpressureMode.values()) System.out.println(c);
public static FlowableEmitter.BackpressureMode 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