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:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, org.springframework.integration.dsl.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
-
Field Summary
Fields inherited from class JmsPollableMessageChannelSpec
jmsChannelFactoryBeanFields inherited from class org.springframework.integration.dsl.MessageChannelSpec
channelFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJmsMessageChannelSpec(jakarta.jms.ConnectionFactory connectionFactory) protectedJmsMessageChannelSpec(org.springframework.jms.core.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 org.springframework.jms.listener.AbstractMessageListenerContainer> containerType) Configure the type of the container.errorHandler(org.springframework.util.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(org.springframework.transaction.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 org.springframework.integration.dsl.MessageChannelSpec
datatype, getComponentsToRegister, interceptor, messageConverter, wireTap, wireTap, wireTapMethods inherited from class org.springframework.integration.dsl.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 org.springframework.beans.factory.FactoryBean
isSingletonMethods inherited from interface org.springframework.context.SmartLifecycle
isPauseable
-
Constructor Details
-
JmsMessageChannelSpec
protected JmsMessageChannelSpec(jakarta.jms.ConnectionFactory connectionFactory) -
JmsMessageChannelSpec
protected JmsMessageChannelSpec(org.springframework.jms.core.JmsTemplate jmsTemplate)
-
-
Method Details
-
containerType
public S containerType(Class<? extends org.springframework.jms.listener.AbstractMessageListenerContainer> 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
public S transactionManager(org.springframework.transaction.PlatformTransactionManager 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:
-