Enum 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
      ERROR
      The operator will emit a MissingBackpressureException if the downstream didn't request enough or in time.
      FULL
      The operator fully supports backpressure and may coordinate downstream requests with upstream requests through batching, arbitration or by other means.
      NONE
      The operator ignores all kinds of backpressure and may overflow the downstream.
      PASS_THROUGH
      The backpressure-related requests pass through this operator without change.
      SPECIAL
      The operator performs special backpressure management; see the associated javadoc.
      UNBOUNDED_IN
      The operator requests Long.MAX_VALUE from upstream but respects the backpressure of the downstream.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BackpressureKind()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static BackpressureKind valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 requests Long.MAX_VALUE from upstream but respects the backpressure of the downstream.
      • NONE

        public static final BackpressureKind NONE
        The operator ignores all kinds of backpressure and may overflow the downstream.
    • Constructor Detail

      • BackpressureKind

        private BackpressureKind()
    • 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 name
        java.lang.NullPointerException - if the argument is null