Package io.reactivex.rxjava3.annotations
Enum BackpressureKind
- java.lang.Object
-
- java.lang.Enum<BackpressureKind>
-
- io.reactivex.rxjava3.annotations.BackpressureKind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BackpressureKind>
public enum BackpressureKind extends java.lang.Enum<BackpressureKind>
Enumeration for various kinds of backpressure support.- Since:
- 2.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORThe operator will emit aMissingBackpressureExceptionif the downstream didn't request enough or in time.FULLThe operator fully supports backpressure and may coordinate downstream requests with upstream requests through batching, arbitration or by other means.NONEThe operator ignores all kinds of backpressure and may overflow the downstream.PASS_THROUGHThe backpressure-related requests pass through this operator without change.SPECIALThe operator performs special backpressure management; see the associated javadoc.UNBOUNDED_INThe operator requestsLong.MAX_VALUEfrom upstream but respects the backpressure of the downstream.
-
Constructor Summary
Constructors Modifier Constructor Description privateBackpressureKind()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BackpressureKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BackpressureKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PASS_THROUGH
public static final BackpressureKind PASS_THROUGH
The backpressure-related requests pass through this operator without change.
-
FULL
public static final BackpressureKind FULL
The operator fully supports backpressure and may coordinate downstream requests with upstream requests through batching, arbitration or by other means.
-
SPECIAL
public static final BackpressureKind SPECIAL
The operator performs special backpressure management; see the associated javadoc.
-
UNBOUNDED_IN
public static final BackpressureKind UNBOUNDED_IN
The operator requestsLong.MAX_VALUEfrom upstream but respects the backpressure of the downstream.
-
ERROR
public static final BackpressureKind ERROR
The operator will emit aMissingBackpressureExceptionif the downstream didn't request enough or in time.
-
NONE
public static final BackpressureKind NONE
The operator ignores all kinds of backpressure and may overflow the downstream.
-
-
Method Detail
-
values
public static BackpressureKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BackpressureKind c : BackpressureKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BackpressureKind valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-