public static enum FluxSink.OverflowStrategy extends java.lang.Enum<FluxSink.OverflowStrategy>
枚举常量和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
static FluxSink.OverflowStrategy |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static FluxSink.OverflowStrategy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值