public interface MessageListenerContainer
extends org.springframework.context.SmartLifecycle
Modifier and Type | Method and Description |
---|---|
MessageConverter |
getMessageConverter()
Deprecated.
- this converter is not used by the container; it was only
used to configure the converter for a
@RabbitListener adapter.
That is now handled differently. If you are manually creating a listener
container, the converter must be configured in a listener adapter (if
present). |
void |
setupMessageListener(MessageListener messageListener)
Setup the message listener to use.
|
void setupMessageListener(MessageListener messageListener)
IllegalArgumentException
if that message listener type is not supported.messageListener
- the object
to wrapped to the MessageListener
.@Deprecated MessageConverter getMessageConverter()
@RabbitListener
adapter.
That is now handled differently. If you are manually creating a listener
container, the converter must be configured in a listener adapter (if
present).MessageConverter
that can be used to
convert Message
, if any.