Package reactor.core.publisher
Enum FluxSink.OverflowStrategy
- All Implemented Interfaces:
Serializable,Comparable<FluxSink.OverflowStrategy>,Constable
Enumeration for backpressure handling.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBuffer all signals if the downstream can't keep up.Drop the incoming signal if the downstream is not ready to receive it.Signal anIllegalStateExceptionwhen the downstream can't keep upCompletely ignore downstream backpressure requests.Downstream will get only the latest signals from upstream. -
Method Summary
Modifier and TypeMethodDescriptionstatic FluxSink.OverflowStrategyReturns 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.
-
Enum Constant Details
-
IGNORE
Completely ignore downstream backpressure requests.This may yield
IllegalStateExceptionwhen queues get full downstream. -
ERROR
Signal anIllegalStateExceptionwhen the downstream can't keep up -
DROP
Drop the incoming signal if the downstream is not ready to receive it. -
LATEST
Downstream will get only the latest signals from upstream. -
BUFFER
Buffer all signals if the downstream can't keep up.Warning! This does unbounded buffering and may lead to
OutOfMemoryError.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-