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 TypeMethodDescriptionvoidacknowledge(SQSMessage message) Acknowledges the consumed message via callingdeleteMessagevoidAutoAcknowledge doesn't need to do anything in this method.AutoAcknowledge doesn't need to do anything in this method.voidnotifyMessageReceived(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:
acknowledgein interfaceAcknowledger- Parameters:
message- message to acknowledge.- Throws:
jakarta.jms.JMSException
-
notifyMessageReceived
When notify message is received, it will acknowledge the message.- Specified by:
notifyMessageReceivedin 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:
getUnAckMessagesin interfaceAcknowledger
-
forgetUnAckMessages
public void forgetUnAckMessages()AutoAcknowledge doesn't need to do anything in this method.- Specified by:
forgetUnAckMessagesin interfaceAcknowledger
-