Enum Class BackPressureHandler.ReleaseReason
java.lang.Object
java.lang.Enum<BackPressureHandler.ReleaseReason>
io.awspring.cloud.sqs.listener.backpressure.BackPressureHandler.ReleaseReason
- All Implemented Interfaces:
Serializable,Comparable<BackPressureHandler.ReleaseReason>,Constable
- Enclosing interface:
- BackPressureHandler
public static enum BackPressureHandler.ReleaseReason
extends Enum<BackPressureHandler.ReleaseReason>
- Since:
- 4.0.0
- Author:
- Loïc Rouchon
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll/Some permits were not used because another BackPressureHandler has a lower permits limit and the permits difference need to be aligned across all handlers.No messages were retrieved from SQS, so all permits need to be returned.Some messages were fetched from SQS.The processing of one or more messages finished, successfully or not. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BackPressureHandler.ReleaseReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIMITED
All/Some permits were not used because another BackPressureHandler has a lower permits limit and the permits difference need to be aligned across all handlers. -
NONE_FETCHED
No messages were retrieved from SQS, so all permits need to be returned. -
PARTIAL_FETCH
Some messages were fetched from SQS. Unused permits if any need to be returned. -
PROCESSED
The processing of one or more messages finished, successfully or not.
-
-
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
-