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 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 identifiers
      indexOfMessage - The action will apply to all messages up to this index
      Throws:
      jakarta.jms.JMSException - if action 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 belong
      receiptHandles - the list of handles, which is be used to (negative)acknowledge the messages.
      Throws:
      jakarta.jms.JMSException