Class AmqpMessageChannelSpec<S extends AmqpMessageChannelSpec<S,T>,T extends AbstractAmqpChannel>
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.amqp.dsl.AmqpPollableMessageChannelSpec<S,T>
org.springframework.integration.amqp.dsl.AmqpMessageChannelSpec<S,T>
- Type Parameters:
S
- the targetAmqpMessageChannelSpec
implementation type.T
- the target channel type.
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,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:
AmqpPublishSubscribeMessageChannelSpec
public class AmqpMessageChannelSpec<S extends AmqpMessageChannelSpec<S,T>,T extends AbstractAmqpChannel> extends AmqpPollableMessageChannelSpec<S,T>
An
AmqpPollableMessageChannelSpec
for a message-driven
PointToPointSubscribableAmqpChannel
.- Since:
- 5.0
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<org.aopalliance.aop.Advice>
adviceChain
Fields inherited from class org.springframework.integration.amqp.dsl.AmqpPollableMessageChannelSpec
amqpChannelFactoryBean
-
Constructor Summary
Constructors Modifier Constructor Description protected
AmqpMessageChannelSpec(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
-
Method Summary
Modifier and Type Method Description S
acknowledgeMode(org.springframework.amqp.core.AcknowledgeMode acknowledgeMode)
S
advice(org.aopalliance.aop.Advice... advice)
S
autoStartup(boolean autoStartup)
S
batchSize(int batchSize)
Configure the batch size.S
concurrentConsumers(int concurrentConsumers)
protected T
doGet()
S
errorHandler(org.springframework.util.ErrorHandler errorHandler)
S
exposeListenerChannel(boolean exposeListenerChannel)
S
maxSubscribers(int maxSubscribers)
S
phase(int phase)
S
prefetchCount(int prefetchCount)
S
receiveTimeout(long receiveTimeout)
S
recoveryInterval(long recoveryInterval)
S
shutdownTimeout(long shutdownTimeout)
S
taskExecutor(java.util.concurrent.Executor taskExecutor)
Configure anExecutor
used to invoke the message listener.S
transactionAttribute(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
Configure aTransactionAttribute
to be used with thetransactionManager(PlatformTransactionManager)
.S
transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
Configure aPlatformTransactionManager
; used to synchronize the rabbit transaction with some other transaction(s).Methods inherited from class org.springframework.integration.amqp.dsl.AmqpPollableMessageChannelSpec
amqpMessageConverter, channelTransacted, defaultDeliveryMode, encoding, extractPayload, headersMappedLast, id, inboundHeaderMapper, messagePropertiesConverter, outboundHeaderMapper, queueName, templateChannelTransacted
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
-
Field Details
-
adviceChain
protected final java.util.List<org.aopalliance.aop.Advice> adviceChain
-
-
Constructor Details
-
AmqpMessageChannelSpec
protected AmqpMessageChannelSpec(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
-
-
Method Details
-
maxSubscribers
- Parameters:
maxSubscribers
- the maxSubscribers.- Returns:
- the spec.
- See Also:
AbstractSubscribableAmqpChannel.setMaxSubscribers(int)
-
acknowledgeMode
- Parameters:
acknowledgeMode
- the acknowledgeMode.- Returns:
- the spec.
- See Also:
AbstractMessageListenerContainer.setAcknowledgeMode(AcknowledgeMode)
-
advice
- Parameters:
advice
- the advice.- Returns:
- the spec.
- See Also:
AbstractMessageListenerContainer.setAdviceChain(Advice[])
-
autoStartup
- Parameters:
autoStartup
- the autoStartup.- Returns:
- the spec.
- See Also:
SmartLifecycle
-
concurrentConsumers
- Parameters:
concurrentConsumers
- the concurrentConsumers- Returns:
- the spec.
- See Also:
SimpleMessageListenerContainer.setConcurrentConsumers(int)
-
errorHandler
- Parameters:
errorHandler
- the errorHandler.- Returns:
- the spec.
- See Also:
AbstractMessageListenerContainer.setErrorHandler(ErrorHandler)
-
exposeListenerChannel
- Parameters:
exposeListenerChannel
- the exposeListenerChannel.- Returns:
- the spec.
- See Also:
AbstractMessageListenerContainer.setExposeListenerChannel(boolean)
-
phase
- Parameters:
phase
- the phase.- Returns:
- the spec.
- See Also:
SmartLifecycle
-
prefetchCount
- Parameters:
prefetchCount
- the prefetchCount.- Returns:
- the spec.
- See Also:
AbstractMessageListenerContainer.setPrefetchCount(int)
-
receiveTimeout
- Parameters:
receiveTimeout
- the receiveTimeout- Returns:
- the spec.
- See Also:
SimpleMessageListenerContainer.setReceiveTimeout(long)
-
recoveryInterval
- Parameters:
recoveryInterval
- the recoveryInterval- Returns:
- the spec.
- See Also:
AbstractMessageListenerContainer.setRecoveryInterval(long)
-
shutdownTimeout
- Parameters:
shutdownTimeout
- the shutdownTimeout.- Returns:
- the spec.
- See Also:
AbstractMessageListenerContainer.setShutdownTimeout(long)
-
taskExecutor
Configure anExecutor
used to invoke the message listener.- Parameters:
taskExecutor
- the taskExecutor.- Returns:
- the spec.
-
transactionAttribute
public S transactionAttribute(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)Configure aTransactionAttribute
to be used with thetransactionManager(PlatformTransactionManager)
.- Parameters:
transactionAttribute
- the transactionAttribute.- Returns:
- the spec.
-
transactionManager
public S transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)Configure aPlatformTransactionManager
; used to synchronize the rabbit transaction with some other transaction(s).- Parameters:
transactionManager
- the transactionManager.- Returns:
- the spec.
-
batchSize
Configure the batch size.- Parameters:
batchSize
- the batchSize.- Returns:
- the spec.
- Since:
- 5.2
- See Also:
SimpleMessageListenerContainer.setBatchSize(int)
-
doGet
- Overrides:
doGet
in classAmqpPollableMessageChannelSpec<S extends AmqpMessageChannelSpec<S,T>,T extends AbstractAmqpChannel>
-