Class QueueMessageBatchVisibility

java.lang.Object
io.awspring.cloud.sqs.listener.QueueMessageBatchVisibility
All Implemented Interfaces:
BatchVisibility

public class QueueMessageBatchVisibility extends Object implements BatchVisibility
BatchVisibility implementation for SQS messages.
Since:
3.3
Author:
Clement Denis, Tomaz Fernandes
  • 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

      public CompletableFuture<Void> changeToAsync(int seconds)
      Description copied from interface: BatchVisibility
      Asynchronously changes the provided messages visibility to the provided value.
      Specified by:
      changeToAsync in interface BatchVisibility
      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.