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 |
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 setAutoStartup(boolean autoStart)
autoStart - true to auto start.@Nullable java.lang.Object getMessageListener()
default void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean