public interface MessageListenerContainer extends SmartLifecycle
DEFAULT_PHASE| Modifier and Type | Method and Description |
|---|---|
DestinationResolver |
getDestinationResolver()
Return the
DestinationResolver to use to resolve
destinations by names. |
MessageConverter |
getMessageConverter()
Return the
MessageConverter that can be used to
convert Message, if any. |
QosSettings |
getReplyQosSettings()
Return the
QosSettings to use when sending a reply,
or null if the broker's defaults should be used. |
boolean |
isPubSubDomain()
Return whether the Publish/Subscribe domain (
Topics) is used. |
boolean |
isReplyPubSubDomain()
Return whether the reply destination uses Publish/Subscribe domain
(
Topics). |
void |
setupMessageListener(Object messageListener)
Setup the message listener to use.
|
getPhase, isAutoStartup, stopvoid setupMessageListener(Object messageListener)
IllegalArgumentException
if that message listener type is not supported.@Nullable MessageConverter getMessageConverter()
MessageConverter that can be used to
convert Message, if any.@Nullable DestinationResolver getDestinationResolver()
DestinationResolver to use to resolve
destinations by names.boolean isPubSubDomain()
boolean isReplyPubSubDomain()
Topics). Otherwise, the Point-to-Point domain
(Queues) is used.
By default, the value is identical to isPubSubDomain().
@Nullable QosSettings getReplyQosSettings()
QosSettings to use when sending a reply,
or null if the broker's defaults should be used.