Class JmsMessageChannelSpec<S extends JmsMessageChannelSpec<S,T>, T extends AbstractJmsChannel>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,T>
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 targetJmsMessageChannelSpecimplementation type.T- the target channel implementation type.
- All Implemented Interfaces:
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
AbstractJmsChannels.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell, Artem Vozhdayenko, Glenn Renfro
-
Field Summary
Fields inherited from class JmsPollableMessageChannelSpec
jmsChannelFactoryBeanFields inherited from class MessageChannelSpec
channelFields inherited from class IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJmsMessageChannelSpec(ConnectionFactory connectionFactory) protectedJmsMessageChannelSpec(JmsTemplate jmsTemplate) -
Method Summary
Modifier and TypeMethodDescriptionacceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) autoStartup(boolean autoStartup) cacheLevel(Integer cacheLevel) Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.concurrentConsumers(int concurrentConsumers) Only applies if thecontainerType(Class)is aDefaultMessageListenerContaineror aSimpleMessageListenerContainer.containerType(Class<? extends AbstractMessageListenerContainer> containerType) Configure the type of the container.errorHandler(ErrorHandler errorHandler) exposeListenerSession(boolean exposeListenerSession) idleTaskExecutionLimit(int idleTaskExecutionLimit) Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.maxMessagesPerTask(int maxMessagesPerTask) Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.maxSubscribers(int maxSubscribers) phase(int phase) recoveryInterval(long recoveryInterval) Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.subscriptionShared(boolean subscriptionShared) taskExecutor(Executor taskExecutor) Only applies if thecontainerType(Class)is aDefaultMessageListenerContaineror aSimpleMessageListenerContainer.transactionManager(PlatformTransactionManager transactionManager) Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.transactionName(String transactionName) Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.transactionTimeout(int transactionTimeout) Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.Methods inherited from class JmsPollableMessageChannelSpec
deliveryPersistent, destination, destination, destinationResolver, doGet, explicitQosEnabled, id, jmsMessageConverter, messageIdEnabled, messageSelector, messageTimestampEnabled, priority, receiveTimeout, sessionAcknowledgeMode, sessionTransacted, timeToLiveMethods inherited from class MessageChannelSpec
datatype, getComponentsToRegister, interceptor, messageConverter, wireTap, wireTap, wireTapMethods inherited from class IntegrationComponentSpec
_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingletonMethods inherited from interface SmartLifecycle
isPauseable
-
Constructor Details
-
JmsMessageChannelSpec
-
JmsMessageChannelSpec
-
-
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 aDefaultMessageListenerContaineror aSimpleMessageListenerContainer.- Parameters:
concurrentConsumers- the concurrentConsumers.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
maxSubscribers
- Parameters:
maxSubscribers- the maxSubscribers.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
autoStartup
- Parameters:
autoStartup- the autoStartup.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
phase
- Parameters:
phase- the phase.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
errorHandler
- Parameters:
errorHandler- the errorHandler.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
exposeListenerSession
- Parameters:
exposeListenerSession- the exposeListenerSession.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
acceptMessagesWhileStopping
- Parameters:
acceptMessagesWhileStopping- the acceptMessagesWhileStopping.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
idleTaskExecutionLimit
Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.- Parameters:
idleTaskExecutionLimit- the idleTaskExecutionLimit.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
maxMessagesPerTask
Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.- Parameters:
maxMessagesPerTask- the maxMessagesPerTask.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
recoveryInterval
Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.- Parameters:
recoveryInterval- the recoveryInterval.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
taskExecutor
Only applies if thecontainerType(Class)is aDefaultMessageListenerContaineror aSimpleMessageListenerContainer.- Parameters:
taskExecutor- the taskExecutor.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
transactionManager
Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.- Parameters:
transactionManager- the transactionManager.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
transactionName
Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.- Parameters:
transactionName- the transactionName.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
transactionTimeout
Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.- Parameters:
transactionTimeout- the transactionTimeout.- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-
cacheLevel
Only applies if thecontainerType(Class)is aDefaultMessageListenerContainer.- Parameters:
cacheLevel- the value fororg.springframework.jms.listener.DefaultMessageListenerContainer.cacheLevel- Returns:
- the current
JmsMessageChannelSpec. - See Also:
-