public static enum Emitter.BackpressureMode extends java.lang.Enum<Emitter.BackpressureMode>
Enum Constant and Description |
---|
BUFFER
Buffers (unbounded) all onNext calls until the downstream can consume them.
|
DROP
Drops the incoming onNext value if the downstream can't keep up.
|
ERROR
Signals a
MissingBackpressureException if the downstream can't keep up. |
LATEST
Keeps the latest onNext value and overwrites it with newer ones until the downstream
can consume it.
|
NONE
No backpressure is applied as the onNext calls pass through the Emitter;
note that this may cause
MissingBackpressureException or IllegalStateException
somewhere downstream. |
Modifier and Type | Method and Description |
---|---|
static Emitter.BackpressureMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Emitter.BackpressureMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Emitter.BackpressureMode NONE
MissingBackpressureException
or IllegalStateException
somewhere downstream.public static final Emitter.BackpressureMode ERROR
MissingBackpressureException
if the downstream can't keep up.public static final Emitter.BackpressureMode BUFFER
public static final Emitter.BackpressureMode DROP
public static final Emitter.BackpressureMode LATEST
public static Emitter.BackpressureMode[] values()
for (Emitter.BackpressureMode c : Emitter.BackpressureMode.values()) System.out.println(c);
public static Emitter.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