Enum BackpressureStrategy

    • Enum Constant Detail

      • LINEAR

        public static final BackpressureStrategy LINEAR
        Data chunks are requested one-by-one after previous data chunk has been given to Netty for writing. When backpressure-buffer-size watermark is reached new chunks are not requested until buffer size decrease under the watermark value.
      • AUTO_FLUSH

        public static final BackpressureStrategy AUTO_FLUSH
        Data are requested one-by-one, in case buffer reaches watermark, no other data is requested and extra flush is initiated.
      • PREFETCH

        public static final BackpressureStrategy PREFETCH
        After first data chunk arrives, expected number of chunks needed to fill the buffer up to watermark is calculated and requested.

        public static final BackpressureStrategy UNBOUNDED
        No backpressure is applied, Long.MAX_VALUE(unbounded) is requested from upstream.
    • Method Detail

      • values

        public static BackpressureStrategy[] 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 (BackpressureStrategy c : BackpressureStrategy.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BackpressureStrategy valueOf​(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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null