Class BulkSQSOperation
java.lang.Object
com.amazon.sqs.javamessaging.acknowledge.BulkSQSOperation
- Direct Known Subclasses:
NegativeAcknowledger
,RangedAcknowledger
This is used by different acknowledgers that requires partitioning of the
list, and execute actions on the partitions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Action call block.void
bulkAction
(List<SQSMessageIdentifier> messageIdentifierList, int indexOfMessage) Bulk action on list of message identifiers up to the provided index
-
Constructor Details
-
BulkSQSOperation
public BulkSQSOperation()
-
-
Method Details
-
bulkAction
public void bulkAction(List<SQSMessageIdentifier> messageIdentifierList, int indexOfMessage) throws jakarta.jms.JMSException Bulk action on list of message identifiers up to the provided index- Parameters:
messageIdentifierList
- Container for the list of message identifiersindexOfMessage
- The action will apply to all messages up to this index- Throws:
jakarta.jms.JMSException
- ifaction
throws
-
action
public abstract void action(String queueUrl, List<String> receiptHandles) throws jakarta.jms.JMSException Action call block. This action can be applied on multiple messages for the same queue.- Parameters:
queueUrl
- queueUrl of the queue, which the receipt handles belongreceiptHandles
- the list of handles, which is be used to (negative)acknowledge the messages.- Throws:
jakarta.jms.JMSException
-