Package io.awspring.cloud.sqs.operations
Enum Class TemplateAcknowledgementMode
java.lang.Object
java.lang.Enum<TemplateAcknowledgementMode>
io.awspring.cloud.sqs.operations.TemplateAcknowledgementMode
- All Implemented Interfaces:
Serializable
,Comparable<TemplateAcknowledgementMode>
,Constable
Acknowledgement modes to be used by a
MessageReceivingOperations
implementation.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAcknowledge received messages.Don't acknowledge messages automatically. -
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateAcknowledgementMode
Returns the enum constant of this class with the specified name.static TemplateAcknowledgementMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MANUAL
Don't acknowledge messages automatically. The message or messages can be acknowledged later withAcknowledgement.acknowledge()
orAcknowledgement.acknowledgeAsync()
-
ACKNOWLEDGE
Acknowledge received messages. Any exceptions that might occur in the acknowledging process are wrapped and rethrown.
-
-
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
-