Class JmsPollableMessageChannelSpec<S extends JmsPollableMessageChannelSpec<S,T>,T extends AbstractJmsChannel>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,C>
org.springframework.integration.dsl.MessageChannelSpec<S,T>
org.springframework.integration.jms.dsl.JmsPollableMessageChannelSpec<S,T>
- Type Parameters:
S
- the targetJmsPollableMessageChannelSpec
implementation type.
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<T>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
- Direct Known Subclasses:
JmsMessageChannelSpec
public class JmsPollableMessageChannelSpec<S extends JmsPollableMessageChannelSpec<S,T>,T extends AbstractJmsChannel> extends MessageChannelSpec<S,T>
A
MessageChannelSpec
for an AbstractJmsChannel
.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell, Artem Vozhdayenko
-
Field Summary
Fields Modifier and Type Field Description protected JmsChannelFactoryBean
jmsChannelFactoryBean
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
JmsPollableMessageChannelSpec(javax.jms.ConnectionFactory connectionFactory)
protected
JmsPollableMessageChannelSpec(JmsChannelFactoryBean jmsChannelFactoryBean, javax.jms.ConnectionFactory connectionFactory)
-
Method Summary
Modifier and Type Method Description S
deliveryPersistent(boolean deliveryPersistent)
S
destination(String destination)
Configure the destination name that backs this channel.S
destination(javax.jms.Destination destination)
Configure the destination that backs this channel.S
destinationResolver(DestinationResolver destinationResolver)
protected T
doGet()
S
explicitQosEnabled(boolean explicitQosEnabled)
protected S
id(String id)
Configure the component identifier.S
jmsMessageConverter(MessageConverter messageConverter)
Configure theMessageConverter
used for both sending and receiving.S
messageIdEnabled(boolean messageIdEnabled)
S
messageSelector(String messageSelector)
Configure a message selector in theDefaultMessageListenerContainer
(when message driven) or theJmsTemplate
(when polled).S
messageTimestampEnabled(boolean messageTimestampEnabled)
S
priority(int priority)
Default priority.S
receiveTimeout(long receiveTimeout)
S
sessionAcknowledgeMode(int sessionAcknowledgeMode)
S
sessionTransacted(boolean sessionTransacted)
Configure transactional sessions for both theJmsTemplate
(sends and polled receives) andDefaultMessageListenerContainer
(message-driven receives).S
timeToLive(long timeToLive)
Methods inherited from class org.springframework.integration.dsl.MessageChannelSpec
datatype, getComponentsToRegister, interceptor, messageConverter, wireTap, wireTap, wireTap
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
Constructor Details
-
JmsPollableMessageChannelSpec
protected JmsPollableMessageChannelSpec(javax.jms.ConnectionFactory connectionFactory) -
JmsPollableMessageChannelSpec
protected JmsPollableMessageChannelSpec(JmsChannelFactoryBean jmsChannelFactoryBean, javax.jms.ConnectionFactory connectionFactory)
-
-
Method Details
-
id
Description copied from class:IntegrationComponentSpec
Configure the component identifier. Used as thebeanName
to register the bean in the application context for this component.- Overrides:
id
in classIntegrationComponentSpec<S extends JmsPollableMessageChannelSpec<S,T>,T extends AbstractJmsChannel>
- Parameters:
id
- the id.- Returns:
- the spec.
-
destination
Configure the destination name that backs this channel.- Parameters:
destination
- the destination.- Returns:
- the current
MessageChannelSpec
.
-
destinationResolver
- Parameters:
destinationResolver
- the destinationResolver.- Returns:
- the current
MessageChannelSpec
. - See Also:
JmsDestinationAccessor.setDestinationResolver(DestinationResolver)
,JmsDestinationAccessor.setDestinationResolver(DestinationResolver)
-
destination
Configure the destination that backs this channel.- Parameters:
destination
- the destination.- Returns:
- the current
MessageChannelSpec
.
-
messageSelector
Configure a message selector in theDefaultMessageListenerContainer
(when message driven) or theJmsTemplate
(when polled).- Parameters:
messageSelector
- the messageSelector.- Returns:
- the current
MessageChannelSpec
. - See Also:
AbstractMessageListenerContainer.setMessageSelector(String)
,JmsTemplate.receiveSelectedAndConvert(String)
-
jmsMessageConverter
Configure theMessageConverter
used for both sending and receiving.- Parameters:
messageConverter
- the messageConverter.- Returns:
- the current
MessageChannelSpec
. - See Also:
JmsTemplate.setMessageConverter(MessageConverter)
-
deliveryPersistent
- Parameters:
deliveryPersistent
- the deliveryPersistent.- Returns:
- the current
MessageChannelSpec
. - See Also:
JmsTemplate.setDeliveryPersistent(boolean)
-
explicitQosEnabled
- Parameters:
explicitQosEnabled
- the explicitQosEnabled.- Returns:
- the current
MessageChannelSpec
. - See Also:
JmsTemplate.setExplicitQosEnabled(boolean)
-
messageIdEnabled
- Parameters:
messageIdEnabled
- the messageIdEnabled.- Returns:
- the current
MessageChannelSpec
. - See Also:
JmsTemplate.setMessageIdEnabled(boolean)
-
messageTimestampEnabled
- Parameters:
messageTimestampEnabled
- the messageTimestampEnabled.- Returns:
- the current
MessageChannelSpec
. - See Also:
JmsTemplate.setMessageTimestampEnabled(boolean)
-
priority
Default priority. May be overridden at run time with a message priority header.- Parameters:
priority
- the priority.- Returns:
- the current
MessageChannelSpec
. - See Also:
JmsTemplate.setPriority(int)
-
timeToLive
- Parameters:
timeToLive
- the timeToLive.- Returns:
- the current
MessageChannelSpec
. - See Also:
JmsTemplate.setTimeToLive(long)
-
receiveTimeout
- Parameters:
receiveTimeout
- the receiveTimeout.- Returns:
- the current
MessageChannelSpec
. - See Also:
JmsTemplate.setReceiveTimeout(long)
,AbstractPollingMessageListenerContainer.setReceiveTimeout(long)
-
sessionAcknowledgeMode
- Parameters:
sessionAcknowledgeMode
- the acknowledgement mode constant- Returns:
- the current
MessageChannelSpec
. - See Also:
etc.
-
sessionTransacted
Configure transactional sessions for both theJmsTemplate
(sends and polled receives) andDefaultMessageListenerContainer
(message-driven receives).- Parameters:
sessionTransacted
- the sessionTransacted.- Returns:
- the current
MessageChannelSpec
.
-
doGet
- Overrides:
doGet
in classMessageChannelSpec<S extends JmsPollableMessageChannelSpec<S,T>,T extends AbstractJmsChannel>
-