Class 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 Detail

      • BulkSQSOperation

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