Enum Class AcknowledgementMode

java.lang.Object
java.lang.Enum<AcknowledgementMode>
io.awspring.cloud.sqs.listener.acknowledgement.handler.AcknowledgementMode
All Implemented Interfaces:
Serializable, Comparable<AcknowledgementMode>, Constable

public enum AcknowledgementMode extends Enum<AcknowledgementMode>
Configures the acknowledgement behavior for this container.
Since:
3.0
Author:
Tomaz Fernandes
See Also:
  • Enum Constant Details

    • ON_SUCCESS

      public static final AcknowledgementMode ON_SUCCESS
      Messages will be acknowledged when message processing is successful.
    • ALWAYS

      public static final AcknowledgementMode ALWAYS
      Messages will be acknowledged whether processing was completed successfully or with an error.
    • MANUAL

      public static final AcknowledgementMode MANUAL
      Messages will not be acknowledged automatically by the container.
      See Also:
  • Method Details

    • values

      public static AcknowledgementMode[] 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 AcknowledgementMode 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