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
  • Enum Constant Details

    • LIMITED

      public static final BackPressureHandler.ReleaseReason 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

      public static final BackPressureHandler.ReleaseReason NONE_FETCHED
      No messages were retrieved from SQS, so all permits need to be returned.
    • PARTIAL_FETCH

      public static final BackPressureHandler.ReleaseReason PARTIAL_FETCH
      Some messages were fetched from SQS. Unused permits if any need to be returned.
    • PROCESSED

      public static final BackPressureHandler.ReleaseReason PROCESSED
      The processing of one or more messages finished, successfully or not.
  • Method Details

    • values

      public static BackPressureHandler.ReleaseReason[] 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 BackPressureHandler.ReleaseReason 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