Package io.reactivex.rxjava3.annotations
Enum Class BackpressureKind
- All Implemented Interfaces:
Serializable
,Comparable<BackpressureKind>
,Constable
Enumeration for various kinds of backpressure support.
- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe operator will emit aMissingBackpressureException
if the downstream didn't request enough or in time.The operator fully supports backpressure and may coordinate downstream requests with upstream requests through batching, arbitration or by other means.The operator ignores all kinds of backpressure and may overflow the downstream.The backpressure-related requests pass through this operator without change.The operator performs special backpressure management; see the associated javadoc.The operator requestsLong.MAX_VALUE
from upstream but respects the backpressure of the downstream. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BackpressureKind
Returns the enum constant of this class with the specified name.static BackpressureKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PASS_THROUGH
The backpressure-related requests pass through this operator without change. -
FULL
The operator fully supports backpressure and may coordinate downstream requests with upstream requests through batching, arbitration or by other means. -
SPECIAL
The operator performs special backpressure management; see the associated javadoc. -
UNBOUNDED_IN
The operator requestsLong.MAX_VALUE
from upstream but respects the backpressure of the downstream. -
ERROR
The operator will emit aMissingBackpressureException
if the downstream didn't request enough or in time. -
NONE
The operator ignores all kinds of backpressure and may overflow the downstream.
-
-
Constructor Details
-
BackpressureKind
private BackpressureKind()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-