Package io.micronaut.http.body
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
This enum controls how backpressure should be handled if one of the two bodies
("downstreams") is consuming data slower than the other.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRequest data from upstream at the pace of the fastest downstream.Request data from upstream at the pace of the new downstream.Request data from upstream at the pace of the original downstream.Request data from upstream at the pace of the slowest downstream. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ByteBody.SplitBackpressureMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SLOWEST
Request data from upstream at the pace of the slowest downstream. -
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
Request data from upstream at the pace of the original downstream. The pace of the consumption of the new body returned byByteBody.split(SplitBackpressureMode)
is ignored. Note that this can cause the new downstream to buffer or drop messages, if it can't keep up. -
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
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
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 nameNullPointerException
- if the argument is null
-