Class AutoAcknowledger
java.lang.Object
com.amazon.sqs.javamessaging.acknowledge.AutoAcknowledger
- All Implemented Interfaces:
Acknowledger
Used by session to automatically acknowledge a client's receipt of a message
either when the session has successfully returned from a call to receive or
when the message listener the session has called to process the message
successfully returns.
-
Constructor Summary
ConstructorsConstructorDescriptionAutoAcknowledger
(AmazonSQSMessagingClientWrapper amazonSQSClient, SQSSession session) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acknowledge
(SQSMessage message) Acknowledges the consumed message via callingdeleteMessage
void
AutoAcknowledge doesn't need to do anything in this method.AutoAcknowledge doesn't need to do anything in this method.void
notifyMessageReceived
(SQSMessage message) When notify message is received, it will acknowledge the message.
-
Constructor Details
-
AutoAcknowledger
-
-
Method Details
-
acknowledge
Acknowledges the consumed message via callingdeleteMessage
- Specified by:
acknowledge
in interfaceAcknowledger
- Parameters:
message
- message to acknowledge.- Throws:
jakarta.jms.JMSException
-
notifyMessageReceived
When notify message is received, it will acknowledge the message.- Specified by:
notifyMessageReceived
in interfaceAcknowledger
- Parameters:
message
- notify acknowledger message is received- Throws:
jakarta.jms.JMSException
-
getUnAckMessages
AutoAcknowledge doesn't need to do anything in this method. Return an empty list.- Specified by:
getUnAckMessages
in interfaceAcknowledger
-
forgetUnAckMessages
public void forgetUnAckMessages()AutoAcknowledge doesn't need to do anything in this method.- Specified by:
forgetUnAckMessages
in interfaceAcknowledger
-