Package io.awspring.cloud.sqs.listener
Class QueueMessageBatchVisibility
java.lang.Object
io.awspring.cloud.sqs.listener.QueueMessageBatchVisibility
- All Implemented Interfaces:
BatchVisibility
BatchVisibility implementation for SQS messages.- Since:
- 3.3
- Author:
- Clement Denis, Tomaz Fernandes
-
Constructor Summary
ConstructorsConstructorDescriptionQueueMessageBatchVisibility(software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient, String queueUrl, Collection<String> receiptHandles) Create an instance for changing the visibility in batch for the provided queue. -
Method Summary
Modifier and TypeMethodDescriptionchangeToAsync(int seconds) Asynchronously changes the provided messages visibility to the provided value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.awspring.cloud.sqs.listener.BatchVisibility
changeTo
-
Constructor Details
-
QueueMessageBatchVisibility
public QueueMessageBatchVisibility(software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient, String queueUrl, Collection<String> receiptHandles) Create an instance for changing the visibility in batch for the provided queue.
-
-
Method Details
-
changeToAsync
Description copied from interface:BatchVisibilityAsynchronously changes the provided messages visibility to the provided value.- Specified by:
changeToAsyncin interfaceBatchVisibility- Parameters:
seconds- number of seconds to set the visibility of the provided messages to. seconds to set the visibility of provided messages to.- Returns:
- a completable future.
-