Interface MessageListenerContainer
- All Superinterfaces:
Lifecycle, Phased, SmartLifecycle
- All Known Implementing Classes:
AbstractMessageListenerContainer, AbstractPollingMessageListenerContainer, DefaultMessageListenerContainer, JmsMessageEndpointManager, SimpleMessageListenerContainer
Internal abstraction used by the framework representing a message
listener container. Not meant to be implemented externally with
support for both JMS and JCA style containers.
- Since:
- 4.1
- Author:
- Stephane Nicoll
-
Field Summary
Fields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Method Summary
Modifier and TypeMethodDescriptionReturn theDestinationResolverto use to resolve destinations by names.Return theMessageConverterthat can be used to convertMessage, if any.Return theQosSettingsto use when sending a reply, ornullif the broker's defaults should be used.booleanReturn whether the Publish/Subscribe domain (Topics) is used.booleanReturn whether the reply destination uses Publish/Subscribe domain (Topics).voidsetupMessageListener(Object messageListener) Set up the message listener to use.Methods inherited from interface SmartLifecycle
getPhase, isAutoStartup, isPauseable, stop
-
Method Details
-
setupMessageListener
Set up the message listener to use. Throws anIllegalArgumentExceptionif that message listener type is not supported. -
getMessageConverter
@Nullable MessageConverter getMessageConverter()Return theMessageConverterthat can be used to convertMessage, if any. -
getDestinationResolver
@Nullable DestinationResolver getDestinationResolver()Return theDestinationResolverto use to resolve destinations by names. -
isPubSubDomain
boolean isPubSubDomain()Return whether the Publish/Subscribe domain (Topics) is used. Otherwise, the Point-to-Point domain (Queues) is used. -
isReplyPubSubDomain
boolean isReplyPubSubDomain()Return whether the reply destination uses Publish/Subscribe domain (Topics). Otherwise, the Point-to-Point domain (Queues) is used.By default, the value is identical to
isPubSubDomain(). -
getReplyQosSettings
@Nullable QosSettings getReplyQosSettings()Return theQosSettingsto use when sending a reply, ornullif the broker's defaults should be used.- Since:
- 5.0
-