public static enum AsyncEmitter.BackpressureMode extends java.lang.Enum<AsyncEmitter.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 an the onNext calls pass through the AsyncEmitter;
note that this may cause
MissingBackpressureException or IllegalStateException
somewhere downstream. |
Modifier and Type | Method and Description |
---|---|
static AsyncEmitter.BackpressureMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AsyncEmitter.BackpressureMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AsyncEmitter.BackpressureMode NONE
MissingBackpressureException
or IllegalStateException
somewhere downstream.public static final AsyncEmitter.BackpressureMode ERROR
MissingBackpressureException
if the downstream can't keep up.public static final AsyncEmitter.BackpressureMode BUFFER
public static final AsyncEmitter.BackpressureMode DROP
public static final AsyncEmitter.BackpressureMode LATEST
public static AsyncEmitter.BackpressureMode[] values()
for (AsyncEmitter.BackpressureMode c : AsyncEmitter.BackpressureMode.values()) System.out.println(c);
public static AsyncEmitter.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