Class SimpleRabbitListenerEndpoint
java.lang.Object
org.springframework.amqp.rabbit.listener.AbstractRabbitListenerEndpoint
org.springframework.amqp.rabbit.config.SimpleRabbitListenerEndpoint
- All Implemented Interfaces:
RabbitListenerEndpoint
,Aware
,BeanFactoryAware
A
RabbitListenerEndpoint
simply
providing the MessageListener
to invoke to process an incoming message for this
endpoint.- Since:
- 1.4
- Author:
- Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MessageListener
createMessageListener
(MessageListenerContainer container) Create aMessageListener
that is able to serve this endpoint for the specified container.protected StringBuilder
void
setMessageListener
(MessageListener messageListener) Set theMessageListener
to invoke when a message matching the endpoint is received.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
-
SimpleRabbitListenerEndpoint
public SimpleRabbitListenerEndpoint()
-
-
Method Details
-
setMessageListener
Set theMessageListener
to invoke when a message matching the endpoint is received.- Parameters:
messageListener
- theMessageListener
instance.
-
getMessageListener
- Returns:
- the
MessageListener
to invoke when a message matching the endpoint is received.
-
createMessageListener
Description copied from class:AbstractRabbitListenerEndpoint
Create aMessageListener
that is able to serve this endpoint for the specified container.- Specified by:
createMessageListener
in classAbstractRabbitListenerEndpoint
- Parameters:
container
- theMessageListenerContainer
to create aMessageListener
.- Returns:
- a a
MessageListener
instance.
-
getEndpointDescription
- Overrides:
getEndpointDescription
in classAbstractRabbitListenerEndpoint
- Returns:
- a description for this endpoint.
Available to subclasses, for inclusion in their
toString()
result.
-