Class BulkSQSOperation
- java.lang.Object
-
- com.amazon.sqs.javamessaging.acknowledge.BulkSQSOperation
-
- Direct Known Subclasses:
NegativeAcknowledger
,RangedAcknowledger
public abstract class BulkSQSOperation extends Object
This is used by different acknowledgers that requires partitioning of the list, and execute actions on the partitions
-
-
Constructor Summary
Constructors Constructor Description BulkSQSOperation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
action(String queueUrl, List<String> receiptHandles)
Action call block.void
bulkAction(List<SQSMessageIdentifier> messageIdentifierList, int indexOfMessage)
Bulk action on list of message identifiers up to the provided index
-
-
-
Method Detail
-
bulkAction
public void bulkAction(List<SQSMessageIdentifier> messageIdentifierList, int indexOfMessage) throws javax.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:
javax.jms.JMSException
- ifaction
throws
-
action
public abstract void action(String queueUrl, List<String> receiptHandles) throws javax.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:
javax.jms.JMSException
-
-