Class JmsPollableMessageChannelSpec<S extends JmsPollableMessageChannelSpec<S,T>,T extends AbstractJmsChannel>
java.lang.Object
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.T
- the target channel implementation type.
- All Implemented Interfaces:
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 inherited from class org.springframework.integration.dsl.MessageChannelSpec
channel
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, target
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ModifierConstructorDescriptionprotected
JmsPollableMessageChannelSpec
(ConnectionFactory connectionFactory) protected
JmsPollableMessageChannelSpec
(JmsChannelFactoryBean jmsChannelFactoryBean, ConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptiondeliveryPersistent
(boolean deliveryPersistent) destination
(Destination destination) Configure the destination that backs this channel.destination
(String destination) Configure the destination name that backs this channel.destinationResolver
(DestinationResolver destinationResolver) protected T
doGet()
explicitQosEnabled
(boolean explicitQosEnabled) protected S
Configure the component identifier.jmsMessageConverter
(MessageConverter messageConverter) Configure theMessageConverter
used for both sending and receiving.messageIdEnabled
(boolean messageIdEnabled) messageSelector
(String messageSelector) Configure a message selector in theDefaultMessageListenerContainer
(when message driven) or theJmsTemplate
(when polled).messageTimestampEnabled
(boolean messageTimestampEnabled) priority
(int priority) Default priority.receiveTimeout
(long receiveTimeout) sessionAcknowledgeMode
(int sessionAcknowledgeMode) sessionTransacted
(boolean sessionTransacted) Configure transactional sessions for both theJmsTemplate
(sends and polled receives) andDefaultMessageListenerContainer
(message-driven receives).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, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Field Details
-
jmsChannelFactoryBean
-
-
Constructor Details
-
JmsPollableMessageChannelSpec
-
JmsPollableMessageChannelSpec
protected JmsPollableMessageChannelSpec(JmsChannelFactoryBean jmsChannelFactoryBean, 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:
-
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:
-
jmsMessageConverter
Configure theMessageConverter
used for both sending and receiving.- Parameters:
messageConverter
- the messageConverter.- Returns:
- the current
MessageChannelSpec
. - See Also:
-
deliveryPersistent
- Parameters:
deliveryPersistent
- the deliveryPersistent.- Returns:
- the current
MessageChannelSpec
. - See Also:
-
explicitQosEnabled
- Parameters:
explicitQosEnabled
- the explicitQosEnabled.- Returns:
- the current
MessageChannelSpec
. - See Also:
-
messageIdEnabled
- Parameters:
messageIdEnabled
- the messageIdEnabled.- Returns:
- the current
MessageChannelSpec
. - See Also:
-
messageTimestampEnabled
- Parameters:
messageTimestampEnabled
- the messageTimestampEnabled.- Returns:
- the current
MessageChannelSpec
. - See Also:
-
priority
Default priority. May be overridden at run time with a message priority header.- Parameters:
priority
- the priority.- Returns:
- the current
MessageChannelSpec
. - See Also:
-
timeToLive
- Parameters:
timeToLive
- the timeToLive.- Returns:
- the current
MessageChannelSpec
. - See Also:
-
receiveTimeout
- Parameters:
receiveTimeout
- the receiveTimeout.- Returns:
- the current
MessageChannelSpec
. - See Also:
-
sessionAcknowledgeMode
- Parameters:
sessionAcknowledgeMode
- the acknowledgement mode constant- Returns:
- the current
MessageChannelSpec
. - See Also:
-
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>
-