Package io.awspring.cloud.sqs.listener
Interface BatchVisibility
- All Known Implementing Classes:
QueueMessageBatchVisibility
public interface BatchVisibility
BatchVisibility interface that can be injected as parameter into a listener method. The purpose of this interface is
to provide a way for the listener methods to extend the visibility timeout of the messages being currently processed.
- Since:
- 3.3
- Author:
- Clement Denis, Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidchangeTo(int seconds) Changes the provided messages visibility to the provided value.changeToAsync(int seconds) Asynchronously changes the provided messages visibility to the provided value.
-
Method Details
-
changeToAsync
Asynchronously changes the provided messages visibility to the provided value.- 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.
-
changeTo
default void changeTo(int seconds) Changes the provided messages visibility to the provided value.- Parameters:
seconds- number of seconds to set the visibility of the provided messages to.
-