public interface MessageListenerContainer extends SmartLifecycle, InitializingBean
DEFAULT_PHASE| Modifier and Type | Method and Description |
|---|---|
default void |
afterPropertiesSet() |
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(String id)
Set the listener id.
|
void |
setQueueNames(String... queues)
Set the queue names.
|
void |
setupMessageListener(MessageListener messageListener)
Setup the message listener to use.
|
getPhase, isAutoStartup, stopvoid setupMessageListener(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(String... queues)
queues - the queue names.void setAutoStartup(boolean autoStart)
autoStart - true to auto start.@Nullable Object getMessageListener()
void setListenerId(String id)
id - the id.default void afterPropertiesSet()
afterPropertiesSet in interface InitializingBean