Enum Class BackpressureKind

java.lang.Object
java.lang.Enum<BackpressureKind>
io.reactivex.rxjava3.annotations.BackpressureKind
All Implemented Interfaces:
Serializable, Comparable<BackpressureKind>, Constable

public enum BackpressureKind extends Enum<BackpressureKind>
Enumeration for various kinds of backpressure support.
Since:
2.0
  • Enum Constant Details

    • 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 requests Long.MAX_VALUE from upstream but respects the backpressure of the downstream.
    • ERROR

      public static final BackpressureKind ERROR
      The operator will emit a MissingBackpressureException if 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.
  • Constructor Details

    • BackpressureKind

      private BackpressureKind()
  • Method Details

    • values

      public static BackpressureKind[] 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

      public static BackpressureKind valueOf(String name)
      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 name
      NullPointerException - if the argument is null