Enum Class ByteBody.SplitBackpressureMode

java.lang.Object
java.lang.Enum<ByteBody.SplitBackpressureMode>
io.micronaut.http.body.ByteBody.SplitBackpressureMode
All Implemented Interfaces:
Serializable, Comparable<ByteBody.SplitBackpressureMode>, Constable
Enclosing interface:
ByteBody

public static enum ByteBody.SplitBackpressureMode extends Enum<ByteBody.SplitBackpressureMode>
This enum controls how backpressure should be handled if one of the two bodies ("downstreams") is consuming data slower than the other.
  • Enum Constant Details

    • SLOWEST

      public static final ByteBody.SplitBackpressureMode SLOWEST
      Request data from upstream at the pace of the slowest downstream.
    • FASTEST

      public static final ByteBody.SplitBackpressureMode FASTEST
      Request data from upstream at the pace of the fastest downstream. Note that this can cause the slower downstream to buffer or drop messages, if it can't keep up.
    • ORIGINAL

      public static final ByteBody.SplitBackpressureMode ORIGINAL
      Request data from upstream at the pace of the original downstream. The pace of the consumption of the new body returned by ByteBody.split(SplitBackpressureMode) is ignored. Note that this can cause the new downstream to buffer or drop messages, if it can't keep up.
    • NEW

      public static final ByteBody.SplitBackpressureMode NEW
      Request data from upstream at the pace of the new downstream. The pace of the consumption of the original body is ignored. Note that this can cause the new downstream to buffer or drop messages, if it can't keep up.
  • Method Details

    • values

      public static ByteBody.SplitBackpressureMode[] 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 ByteBody.SplitBackpressureMode 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