You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "simon-ras (via GitHub)" <gi...@apache.org> on 2023/08/14 13:37:46 UTC

[GitHub] [camel] simon-ras commented on a diff in pull request #11102: CAMEL-19656 batch visibility extender task

simon-ras commented on code in PR #11102:
URL: https://github.com/apache/camel/pull/11102#discussion_r1293470910


##########
components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java:
##########
@@ -404,14 +434,13 @@ public void cancel() {
         @Override
         public void run() {
             if (run.get()) {
-                ChangeMessageVisibilityRequest.Builder request
-                        = ChangeMessageVisibilityRequest.builder().queueUrl(getQueueUrl()).visibilityTimeout(repeatSeconds)
-                                .receiptHandle(exchange.getIn().getHeader(Sqs2Constants.RECEIPT_HANDLE, String.class));
+                ChangeMessageVisibilityBatchRequest.Builder request
+                        = ChangeMessageVisibilityBatchRequest.builder().queueUrl(getQueueUrl()).entries(entries);

Review Comment:
   Please be aware that the request can take at most 10 entries accordingly to the AWS documentation. `entries` at this point could be more than that.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org