接口 MessageListenerContainer
- 所有超级接口:
Lifecycle
,Phased
,SmartLifecycle
- 所有已知实现类:
AbstractMessageListenerContainer
,AbstractPollingMessageListenerContainer
,DefaultMessageListenerContainer
,JmsMessageEndpointManager
,SimpleMessageListenerContainer
public interface MessageListenerContainer extends SmartLifecycle
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.- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
字段概要
从接口继承的字段 org.springframework.context.SmartLifecycle
DEFAULT_PHASE
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 DestinationResolver
getDestinationResolver()
Return theDestinationResolver
to use to resolve destinations by names.MessageConverter
getMessageConverter()
Return theMessageConverter
that can be used to convertMessage
, if any.QosSettings
getReplyQosSettings()
Return theQosSettings
to use when sending a reply, ornull
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.从接口继承的方法 org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
方法详细资料
setupMessageListener
void setupMessageListener(Object messageListener)
Setup the message listener to use. Throws anIllegalArgumentException
if that message listener type is not supported.
getMessageConverter
@Nullable MessageConverter getMessageConverter()
Return theMessageConverter
that can be used to convertMessage
, if any.
getDestinationResolver
@Nullable DestinationResolver getDestinationResolver()
Return theDestinationResolver
to use to resolve destinations by names.
isPubSubDomain
boolean isPubSubDomain()
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 theQosSettings
to use when sending a reply, ornull
if the broker's defaults should be used.- 从以下版本开始:
- 5.0