Interface MethodRabbitListenerEndpoint.AdapterProvider
- Enclosing class:
- MethodRabbitListenerEndpoint
public static interface MethodRabbitListenerEndpoint.AdapterProvider
Provider of listener adapters.
- Since:
- 2.4
-
Method Summary
Modifier and TypeMethodDescriptiongetAdapter
(boolean batch, Object bean, Method method, boolean returnExceptions, RabbitListenerErrorHandler errorHandler, BatchingStrategy batchingStrategy) Get an adapter instance.
-
Method Details
-
getAdapter
MessagingMessageListenerAdapter getAdapter(boolean batch, Object bean, Method method, boolean returnExceptions, RabbitListenerErrorHandler errorHandler, @Nullable BatchingStrategy batchingStrategy) Get an adapter instance.- Parameters:
batch
- true for a batch listener.bean
- the bean.method
- the method.returnExceptions
- true to return exceptions.errorHandler
- the error handler.batchingStrategy
- the batching strategy for batch listeners.- Returns:
- the adapter.
-