Package io.awspring.cloud.sqs.listener
Interface Visibility
- All Known Implementing Classes:
QueueMessageVisibility
public interface Visibility
Visibility 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 message being currently processed.
- Since:
- 1.3
- Author:
- Szymon Dembek, Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
changeTo
(int seconds) Changes the message visibility to the provided value.changeToAsync
(int seconds) Asynchronously changes the message visibility to the provided value.
-
Method Details
-
changeToAsync
Asynchronously changes the message visibility to the provided value.- Parameters:
seconds
- number of seconds to set the visibility of the message to.- Returns:
- a completable future.
-
changeTo
default void changeTo(int seconds) Changes the message visibility to the provided value.- Parameters:
seconds
- number of seconds to set the visibility of the message to.
-