类 AbstractJmsListenerEndpoint
- java.lang.Object
- org.springframework.jms.config.AbstractJmsListenerEndpoint
- 所有已实现的接口:
JmsListenerEndpoint
public abstract class AbstractJmsListenerEndpoint extends Object implements JmsListenerEndpoint
Base model for a JMS listener endpoint.- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll, Juergen Hoeller
- 另请参阅:
MethodJmsListenerEndpoint
,SimpleJmsListenerEndpoint
构造器概要
构造器 构造器 说明 AbstractJmsListenerEndpoint()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract MessageListener
createMessageListener(MessageListenerContainer container)
Create aMessageListener
that is able to serve this endpoint for the specified container.String
getConcurrency()
Return the concurrency for the listener, if any.String
getDestination()
Return the name of the destination for this endpoint.protected StringBuilder
getEndpointDescription()
Return a description for this endpoint.String
getId()
Return the id of this endpoint.String
getSelector()
Return the JMS message selector expression, if any.String
getSubscription()
Return the name for the durable subscription, if any.void
setConcurrency(String concurrency)
Set a concurrency for the listener, if any.void
setDestination(String destination)
Set the name of the destination for this endpoint.void
setId(String id)
void
setSelector(String selector)
Set the JMS message selector expression.void
setSubscription(String subscription)
Set the name for the durable subscription.void
setupListenerContainer(MessageListenerContainer listenerContainer)
Setup the specified message listener container with the model defined by this endpoint.String
toString()
构造器详细资料
AbstractJmsListenerEndpoint
public AbstractJmsListenerEndpoint()
方法详细资料
getId
public String getId()
从接口复制的说明:JmsListenerEndpoint
Return the id of this endpoint.- 指定者:
getId
在接口中JmsListenerEndpoint
setDestination
public void setDestination(@Nullable String destination)
Set the name of the destination for this endpoint.
getDestination
@Nullable public String getDestination()
Return the name of the destination for this endpoint.
setSubscription
public void setSubscription(@Nullable String subscription)
Set the name for the durable subscription.
getSubscription
@Nullable public String getSubscription()
Return the name for the durable subscription, if any.
setSelector
public void setSelector(@Nullable String selector)
Set the JMS message selector expression.See the JMS specification for a detailed definition of selector expressions.
getSelector
@Nullable public String getSelector()
Return the JMS message selector expression, if any.
setConcurrency
public void setConcurrency(@Nullable String concurrency)
Set a concurrency for the listener, if any.The concurrency limits can be a "lower-upper" String, e.g. "5-10", or a simple upper limit String, e.g. "10" (the lower limit will be 1 in this case).
The underlying container may or may not support all features. For instance, it may not be able to scale: in that case only the upper value is used.
getConcurrency
@Nullable public String getConcurrency()
Return the concurrency for the listener, if any.
setupListenerContainer
public void setupListenerContainer(MessageListenerContainer listenerContainer)
从接口复制的说明:JmsListenerEndpoint
Setup the specified message listener container with the model defined by this endpoint.This endpoint must provide the requested missing option(s) of the specified container to make it usable. Usually, this is about setting the
destination
and themessageListener
to use but an implementation may override any default setting that was already set.- 指定者:
setupListenerContainer
在接口中JmsListenerEndpoint
- 参数:
listenerContainer
- the listener container to configure
createMessageListener
protected abstract MessageListener createMessageListener(MessageListenerContainer container)
Create aMessageListener
that is able to serve this endpoint for the specified container.
getEndpointDescription
protected StringBuilder getEndpointDescription()
Return a description for this endpoint.Available to subclasses, for inclusion in their
toString()
result.