Class JmsMessageChannelSpec<S extends JmsMessageChannelSpec<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>
org.springframework.integration.jms.dsl.JmsMessageChannelSpec<S,T>
- Type Parameters:
S
- the targetJmsMessageChannelSpec
implementation type.
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<T>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
- Direct Known Subclasses:
JmsPublishSubscribeMessageChannelSpec
public class JmsMessageChannelSpec<S extends JmsMessageChannelSpec<S,T>,T extends AbstractJmsChannel> extends JmsPollableMessageChannelSpec<S,T>
A
JmsMessageChannelSpec
for subscribable
AbstractJmsChannel
s.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell, Artem Vozhdayenko
-
Field Summary
Fields inherited from class org.springframework.integration.jms.dsl.JmsPollableMessageChannelSpec
jmsChannelFactoryBean
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
JmsMessageChannelSpec(javax.jms.ConnectionFactory connectionFactory)
-
Method Summary
Methods inherited from class org.springframework.integration.jms.dsl.JmsPollableMessageChannelSpec
deliveryPersistent, destination, destination, destinationResolver, doGet, explicitQosEnabled, id, jmsMessageConverter, messageIdEnabled, messageSelector, messageTimestampEnabled, priority, receiveTimeout, sessionAcknowledgeMode, sessionTransacted, 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
-
Constructor Details
-
JmsMessageChannelSpec
protected JmsMessageChannelSpec(javax.jms.ConnectionFactory connectionFactory)
-
-
Method Details
-
containerType
Configure the type of the container.AbstractMessageListenerContainer
. Defaults toDefaultMessageListenerContainer
.- Parameters:
containerType
- the containerType.- Returns:
- the current
JmsMessageChannelSpec
.
-
concurrentConsumers
Only applies if thecontainerType(Class)
is aDefaultMessageListenerContainer
or aSimpleMessageListenerContainer
.- Parameters:
concurrentConsumers
- the concurrentConsumers.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
DefaultMessageListenerContainer.setConcurrentConsumers(int)
,SimpleMessageListenerContainer.setConcurrentConsumers(int)
-
maxSubscribers
- Parameters:
maxSubscribers
- the maxSubscribers.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
SubscribableJmsChannel.setMaxSubscribers(int)
-
autoStartup
- Parameters:
autoStartup
- the autoStartup.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
SmartLifecycle
-
phase
- Parameters:
phase
- the phase.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
SmartLifecycle
-
errorHandler
- Parameters:
errorHandler
- the errorHandler.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
AbstractMessageListenerContainer.setErrorHandler(ErrorHandler)
-
exposeListenerSession
- Parameters:
exposeListenerSession
- the exposeListenerSession.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
AbstractMessageListenerContainer.setExposeListenerSession(boolean)
-
acceptMessagesWhileStopping
- Parameters:
acceptMessagesWhileStopping
- the acceptMessagesWhileStopping.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
AbstractMessageListenerContainer.setAcceptMessagesWhileStopping(boolean)
-
idleTaskExecutionLimit
Only applies if thecontainerType(Class)
is aDefaultMessageListenerContainer
.- Parameters:
idleTaskExecutionLimit
- the idleTaskExecutionLimit.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
DefaultMessageListenerContainer.setIdleTaskExecutionLimit(int)
-
maxMessagesPerTask
Only applies if thecontainerType(Class)
is aDefaultMessageListenerContainer
.- Parameters:
maxMessagesPerTask
- the maxMessagesPerTask.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
DefaultMessageListenerContainer.setMaxMessagesPerTask(int)
-
recoveryInterval
Only applies if thecontainerType(Class)
is aDefaultMessageListenerContainer
.- Parameters:
recoveryInterval
- the recoveryInterval.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
DefaultMessageListenerContainer.setRecoveryInterval(long)
-
taskExecutor
Only applies if thecontainerType(Class)
is aDefaultMessageListenerContainer
or aSimpleMessageListenerContainer
.- Parameters:
taskExecutor
- the taskExecutor.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
DefaultMessageListenerContainer.setTaskExecutor(Executor)
,SimpleMessageListenerContainer.setTaskExecutor(Executor)
-
transactionManager
Only applies if thecontainerType(Class)
is aDefaultMessageListenerContainer
.- Parameters:
transactionManager
- the transactionManager.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
AbstractPollingMessageListenerContainer.setTransactionManager(PlatformTransactionManager)
-
transactionName
Only applies if thecontainerType(Class)
is aDefaultMessageListenerContainer
.- Parameters:
transactionName
- the transactionName.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
AbstractPollingMessageListenerContainer.setTransactionName(String)
-
transactionTimeout
Only applies if thecontainerType(Class)
is aDefaultMessageListenerContainer
.- Parameters:
transactionTimeout
- the transactionTimeout.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
AbstractPollingMessageListenerContainer.setTransactionTimeout(int)
-
cacheLevel
Only applies if thecontainerType(Class)
is aDefaultMessageListenerContainer
.- Parameters:
cacheLevel
- the value fororg.springframework.jms.listener.DefaultMessageListenerContainer.cacheLevel
- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
DefaultMessageListenerContainer.setCacheLevel(int)
-
subscriptionShared
- Parameters:
subscriptionShared
- the subscription sharedboolean
flag.- Returns:
- the current
JmsMessageChannelSpec
. - See Also:
AbstractMessageListenerContainer.setSubscriptionShared(boolean)
-