Package io.awspring.cloud.sqs.listener
Class QueueMessageVisibility
java.lang.Object
io.awspring.cloud.sqs.listener.QueueMessageVisibility
- All Implemented Interfaces:
Visibility
Visibility implementation for SQS messages.- Since:
- 1.3
- Author:
- Szymon Dembek, Tomaz Fernandes
-
Constructor Summary
ConstructorsConstructorDescriptionQueueMessageVisibility(software.amazon.awssdk.services.sqs.SqsAsyncClient amazonSqsAsync, String queueUrl, String receiptHandle) Create an instance for changing the visibility for the provided queue. -
Method Summary
Modifier and TypeMethodDescriptionchangeToAsync(int seconds) Asynchronously changes the message 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.Visibility
changeTo
-
Constructor Details
-
QueueMessageVisibility
public QueueMessageVisibility(software.amazon.awssdk.services.sqs.SqsAsyncClient amazonSqsAsync, String queueUrl, String receiptHandle) Create an instance for changing the visibility for the provided queue.- Parameters:
amazonSqsAsync- the client to be used.queueUrl- the queue url.receiptHandle- the message receipt handle.
-
-
Method Details
-
changeToAsync
Description copied from interface:VisibilityAsynchronously changes the message visibility to the provided value.- Specified by:
changeToAsyncin interfaceVisibility- Parameters:
seconds- number of seconds to set the visibility of the message to.- Returns:
- a completable future.
-