Class MultiMethodRabbitListenerEndpoint
java.lang.Object
org.springframework.amqp.rabbit.listener.AbstractRabbitListenerEndpoint
org.springframework.amqp.rabbit.listener.MethodRabbitListenerEndpoint
org.springframework.amqp.rabbit.listener.MultiMethodRabbitListenerEndpoint
- All Implemented Interfaces:
RabbitListenerEndpoint
,Aware
,BeanFactoryAware
- Since:
- 1.5
- Author:
- Gary Russell
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.amqp.rabbit.listener.MethodRabbitListenerEndpoint
MethodRabbitListenerEndpoint.AdapterProvider
-
Constructor Summary
ConstructorDescriptionMultiMethodRabbitListenerEndpoint
(List<Method> methods, Method defaultMethod, Object bean) Construct an instance for the provided methods, default method and bean. -
Method Summary
Modifier and TypeMethodDescriptionprotected HandlerAdapter
configureListenerAdapter
(MessagingMessageListenerAdapter messageListener) Create aHandlerAdapter
for this listener adapter.void
setValidator
(Validator validator) Set a payload validator.Methods inherited from class org.springframework.amqp.rabbit.listener.MethodRabbitListenerEndpoint
createMessageListener, createMessageListenerInstance, getBean, getEndpointDescription, getMessageHandlerMethodFactory, getMethod, setAdapterProvider, setBean, setErrorHandler, setMessageHandlerMethodFactory, setMethod, setReturnExceptions
Methods inherited from class org.springframework.amqp.rabbit.listener.AbstractRabbitListenerEndpoint
getAckMode, getAdmin, getAutoStartup, getBatchingStrategy, getBatchListener, getBeanExpressionContext, getBeanFactory, getBeanResolver, getConcurrency, getGroup, getId, getMessageConverter, getPriority, getQueueNames, getQueues, getReplyContentType, getReplyPostProcessor, getResolver, getTaskExecutor, isBatchListener, isConverterWinsContentType, isExclusive, setAckMode, setAdmin, setAutoStartup, setBatchingStrategy, setBatchListener, setBeanFactory, setConcurrency, setConverterWinsContentType, setExclusive, setGroup, setId, setMessageConverter, setPriority, setQueueNames, setQueues, setReplyContentType, setReplyPostProcessor, setTaskExecutor, setupListenerContainer, toString
-
Constructor Details
-
MultiMethodRabbitListenerEndpoint
public MultiMethodRabbitListenerEndpoint(List<Method> methods, @Nullable Method defaultMethod, Object bean) Construct an instance for the provided methods, default method and bean.- Parameters:
methods
- the methods.defaultMethod
- the default method.bean
- the bean.- Since:
- 2.0.3
-
-
Method Details
-
setValidator
Set a payload validator.- Parameters:
validator
- the validator.- Since:
- 2.3.7
-
configureListenerAdapter
Description copied from class:MethodRabbitListenerEndpoint
Create aHandlerAdapter
for this listener adapter.- Overrides:
configureListenerAdapter
in classMethodRabbitListenerEndpoint
- Parameters:
messageListener
- the listener adapter.- Returns:
- the handler adapter.
-