davsclaus commented on code in PR #11102: URL: https://github.com/apache/camel/pull/11102#discussion_r1293472109
########## 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: Thanks then we should split the batch into group of 10, and then if there are 25, then we do 3 calls. -- 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-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org