public enum AcknowledgeMode extends java.lang.Enum<AcknowledgeMode>
Specifies the different possible modes of acknowledgment:
| Enum Constant and Description |
|---|
ACK_AUTO |
ACK_RANGE |
ACK_UNORDERED |
| Modifier and Type | Method and Description |
|---|---|
Acknowledger |
createAcknowledger(AmazonSQSMessagingClientWrapper amazonSQSClient,
SQSSession parentSQSSession)
Creates the acknowledger associated with the session, which will be used
to acknowledge the delivered messages on consumers of the session.
|
int |
getOriginalAcknowledgeMode()
Returns the acknowledge mode.
|
static AcknowledgeMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AcknowledgeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
AcknowledgeMode |
withOriginalAcknowledgeMode(int originalAcknowledgeMode)
Sets the acknowledge mode.
|
public static final AcknowledgeMode ACK_AUTO
public static final AcknowledgeMode ACK_UNORDERED
public static final AcknowledgeMode ACK_RANGE
public static AcknowledgeMode[] values()
for (AcknowledgeMode c : AcknowledgeMode.values()) System.out.println(c);
public static AcknowledgeMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic AcknowledgeMode withOriginalAcknowledgeMode(int originalAcknowledgeMode)
public int getOriginalAcknowledgeMode()
public Acknowledger createAcknowledger(AmazonSQSMessagingClientWrapper amazonSQSClient, SQSSession parentSQSSession) throws JMSException
amazonSQSClient - the SQS client to delete messagesparentSQSSession - the associated session for the acknowledgerJMSException - If invalid acknowledge mode is used.