public enum AcknowledgeMode extends 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(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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic AcknowledgeMode withOriginalAcknowledgeMode(int originalAcknowledgeMode)
public int getOriginalAcknowledgeMode()
public Acknowledger createAcknowledger(AmazonSQSMessagingClientWrapper amazonSQSClient, SQSSession parentSQSSession) throws javax.jms.JMSException
amazonSQSClient - the SQS client to delete messagesparentSQSSession - the associated session for the acknowledgerjavax.jms.JMSException - If invalid acknowledge mode is used.Copyright © 2022. All rights reserved.