Package com.flowable.core.aws.sqs
Enum SqsMessageDeletionPolicy
java.lang.Object
java.lang.Enum<SqsMessageDeletionPolicy>
com.flowable.core.aws.sqs.SqsMessageDeletionPolicy
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SqsMessageDeletionPolicy>
,java.lang.constant.Constable
public enum SqsMessageDeletionPolicy extends java.lang.Enum<SqsMessageDeletionPolicy>
Deletion policy for messages. Used to decide when a message needs to be deleted.
- Author:
- Filip Hrisafov
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Always deletes message in case of success (no exception thrown) or failure (exception thrown) during message processing by the listener method.NO_REDRIVE
Always deletes message in case of success (no exception thrown).ON_SUCCESS
Deletes message when successfully executed by the listener method. -
Method Summary
Modifier and Type Method Description static SqsMessageDeletionPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SqsMessageDeletionPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always deletes message in case of success (no exception thrown) or failure (exception thrown) during message processing by the listener method. -
NO_REDRIVE
Always deletes message in case of success (no exception thrown). On failure (exception thrown) deletes messages only if the queue has no redrive policy. -
ON_SUCCESS
Deletes message when successfully executed by the listener method. If an exception is thrown by the listener method, the message will not be deleted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-