Package io.awspring.cloud.sqs.listener
Class AsyncComponentAdapters
java.lang.Object
io.awspring.cloud.sqs.listener.AsyncComponentAdapters
Utility class for adapting blocking components to their asynchronous variants.
- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classBase class for BlockingComponentAdapters. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> AsyncAcknowledgementResultCallback<T>adapt(AcknowledgementResultCallback<T> acknowledgementResultCallback) static <T> AsyncErrorHandler<T>adapt(ErrorHandler<T> errorHandler) Adapt the providedErrorHandlerto anAsyncErrorHandlerstatic <T> AsyncMessageInterceptor<T>adapt(MessageInterceptor<T> messageInterceptor) Adapt the providedMessageInterceptorto anAsyncMessageInterceptorstatic <T> AsyncMessageListener<T>adapt(MessageListener<T> messageListener) Adapt the providedMessageListenerto anAsyncMessageListener
-
Method Details
-
adapt
Adapt the providedErrorHandlerto anAsyncErrorHandler- Type Parameters:
T- the message payload type- Parameters:
errorHandler- the handler to be adapted- Returns:
- the adapted component.
-
adapt
Adapt the providedMessageInterceptorto anAsyncMessageInterceptor- Type Parameters:
T- the message payload type- Parameters:
messageInterceptor- the interceptor to be adapted- Returns:
- the adapted component.
-
adapt
Adapt the providedMessageListenerto anAsyncMessageListener- Type Parameters:
T- the message payload type- Parameters:
messageListener- the listener to be adapted- Returns:
- the adapted component.
-
adapt
public static <T> AsyncAcknowledgementResultCallback<T> adapt(AcknowledgementResultCallback<T> acknowledgementResultCallback)
-