public interface MessageListenerContainer
extends org.springframework.context.SmartLifecycle, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Method and Description |
|---|---|
default void |
afterPropertiesSet() |
java.lang.Object |
getMessageListener()
Get the message listener.
|
default boolean |
isConsumerBatchEnabled()
Return true if this container is capable of (and configured to) create batches
of consumed messages.
|
default void |
lazyLoad()
Do not check for missing or mismatched queues during startup.
|
void |
setAutoStartup(boolean autoStart)
Set auto startup.
|
void |
setListenerId(java.lang.String id)
Set the listener id.
|
void |
setQueueNames(java.lang.String... queues)
Set the queue names.
|
void |
setupMessageListener(org.springframework.amqp.core.MessageListener messageListener)
Setup the message listener to use.
|
void setupMessageListener(org.springframework.amqp.core.MessageListener messageListener)
IllegalArgumentException
if that message listener type is not supported.messageListener - the object to wrapped to the MessageListener.default void lazyLoad()
default boolean isConsumerBatchEnabled()
void setQueueNames(java.lang.String... queues)
queues - the queue names.void setAutoStartup(boolean autoStart)
autoStart - true to auto start.@Nullable java.lang.Object getMessageListener()
void setListenerId(java.lang.String id)
id - the id.default void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean