Package io.awspring.cloud.sqs.listener
Interface AsyncMessageListener<T>
- Type Parameters:
T- theMessagepayload type.
- All Known Implementing Classes:
AsyncMessagingMessageListenerAdapter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Async listener to process individual
Message instances.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<Void>onMessage(Collection<Message<T>> messages) Process the provided messages.Process the provided message.
-
Method Details
-
onMessage
Process the provided message.- Parameters:
message- the message.- Returns:
- a completable future.
-
onMessage
Process the provided messages.- Parameters:
messages- the messages.- Returns:
- a completable future.
-