public static enum FluxSink.OverflowStrategy extends Enum<FluxSink.OverflowStrategy>
Enum Constant and Description |
---|
BUFFER
Buffer all signals if the downstream can't keep up.
|
DROP
Drop the incoming signal if the downstream is not ready to receive it.
|
ERROR
Signal an
IllegalStateException when the downstream can't keep up |
IGNORE
Completely ignore downstream backpressure requests.
|
LATEST
Downstream will get only the latest signals from upstream.
|
Modifier and Type | Method and Description |
---|---|
static FluxSink.OverflowStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FluxSink.OverflowStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FluxSink.OverflowStrategy IGNORE
This may yield IllegalStateException
when queues get full downstream.
public static final FluxSink.OverflowStrategy ERROR
IllegalStateException
when the downstream can't keep uppublic static final FluxSink.OverflowStrategy DROP
public static final FluxSink.OverflowStrategy LATEST
public static final FluxSink.OverflowStrategy BUFFER
Warning! This does unbounded buffering and may lead to OutOfMemoryError
.
public static FluxSink.OverflowStrategy[] values()
for (FluxSink.OverflowStrategy c : FluxSink.OverflowStrategy.values()) System.out.println(c);
public static FluxSink.OverflowStrategy 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