Class AsyncMessagingMessageListenerAdapter<T>
java.lang.Object
io.awspring.cloud.sqs.listener.adapter.AbstractMethodInvokingListenerAdapter<T>
io.awspring.cloud.sqs.listener.adapter.AsyncMessagingMessageListenerAdapter<T>
- Type Parameters:
T- theMessagepayload type.
- All Implemented Interfaces:
AsyncMessageListener<T>
public class AsyncMessagingMessageListenerAdapter<T>
extends AbstractMethodInvokingListenerAdapter<T>
implements AsyncMessageListener<T>
AsyncMessageListener implementation to handle a message by invoking a method handler.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononMessage(Collection<Message<T>> messages) Process the provided messages.Process the provided message.Methods inherited from class io.awspring.cloud.sqs.listener.adapter.AbstractMethodInvokingListenerAdapter
createListenerException, createListenerException, invokeHandler, invokeHandler
-
Constructor Details
-
AsyncMessagingMessageListenerAdapter
-
-
Method Details
-
onMessage
Description copied from interface:AsyncMessageListenerProcess the provided message.- Specified by:
onMessagein interfaceAsyncMessageListener<T>- Parameters:
message- the message.- Returns:
- a completable future.
-
onMessage
Description copied from interface:AsyncMessageListenerProcess the provided messages.- Specified by:
onMessagein interfaceAsyncMessageListener<T>- Parameters:
messages- the messages.- Returns:
- a completable future.
-