Class SimpleMessageListenerContainerSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<SimpleMessageListenerContainerSpec,SimpleMessageListenerContainer>
org.springframework.integration.amqp.dsl.MessageListenerContainerSpec<SimpleMessageListenerContainerSpec,SimpleMessageListenerContainer>
org.springframework.integration.amqp.dsl.AbstractMessageListenerContainerSpec<SimpleMessageListenerContainerSpec,SimpleMessageListenerContainer>
org.springframework.integration.amqp.dsl.SimpleMessageListenerContainerSpec
- All Implemented Interfaces:
DisposableBean
,FactoryBean<SimpleMessageListenerContainer>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
public class SimpleMessageListenerContainerSpec
extends AbstractMessageListenerContainerSpec<SimpleMessageListenerContainerSpec,SimpleMessageListenerContainer>
Spec for a
SimpleMessageListenerContainer
.- Since:
- 5.0
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionSimpleMessageListenerContainerSpec
(SimpleMessageListenerContainer listenerContainer) -
Method Summary
Modifier and TypeMethodDescriptionbatchSize
(int batchSize) The batch size to use.concurrentConsumers
(int concurrentConsumers) consecutiveActiveTrigger
(int consecutiveActiveTrigger) consecutiveIdleTrigger
(int consecutiveIdleTrigger) consumerBatchEnabled
(boolean enabled) Set to true to enable batching of consumed messages.maxConcurrentConsumers
(int maxConcurrentConsumers) receiveTimeout
(long receiveTimeout) startConsumerMinInterval
(long startConsumerMinInterval) stopConsumerMinInterval
(long stopConsumerMinInterval) Methods inherited from class org.springframework.integration.amqp.dsl.AbstractMessageListenerContainerSpec
acknowledgeMode, addQueueNames, addQueues, adviceChain, afterReceivePostProcessors, alwaysRequeueWithTxManagerRollback, autoDeclare, channelTransacted, consumerArguments, consumerTagStrategy, deBatchingEnabled, defaultRequeueRejected, errorHandler, exclusive, exclusiveConsumerExceptionLogger, failedDeclarationRetryInterval, id, idleEventInterval, lookupKeyQualifier, messagePropertiesConverter, mismatchedQueuesFatal, missingQueuesFatal, prefetchCount, recoveryBackOff, recoveryInterval, shutdownTimeout, statefulRetryFatalWithNullMessageId, taskExecutor, transactionAttribute, transactionManager
Methods inherited from class org.springframework.integration.amqp.dsl.MessageListenerContainerSpec
queueName
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, 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
-
listenerContainer
-
-
Constructor Details
-
SimpleMessageListenerContainerSpec
-
-
Method Details
-
concurrentConsumers
- Parameters:
concurrentConsumers
- the concurrentConsumers- Returns:
- the spec.
- See Also:
-
maxConcurrentConsumers
- Parameters:
maxConcurrentConsumers
- the maxConcurrentConsumers.- Returns:
- the spec.
- See Also:
-
startConsumerMinInterval
- Parameters:
startConsumerMinInterval
- the startConsumerMinInterval- Returns:
- the spec.
- See Also:
-
stopConsumerMinInterval
- Parameters:
stopConsumerMinInterval
- the stopConsumerMinInterval.- Returns:
- the spec.
- See Also:
-
consecutiveActiveTrigger
- Parameters:
consecutiveActiveTrigger
- the consecutiveActiveTrigger.- Returns:
- the spec.
- See Also:
-
consecutiveIdleTrigger
- Parameters:
consecutiveIdleTrigger
- the consecutiveIdleTrigger.- Returns:
- the spec.
- See Also:
-
receiveTimeout
- Parameters:
receiveTimeout
- the receiveTimeout- Returns:
- the spec.
- See Also:
-
batchSize
The batch size to use.- Parameters:
batchSize
- the batchSize.- Returns:
- the spec.
- Since:
- 5.2
- See Also:
-
consumerBatchEnabled
Set to true to enable batching of consumed messages.- Parameters:
enabled
- true to enable.- Returns:
- the spec.
- Since:
- 5.3
-