Class PollerSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<PollerSpec,PollerMetadata>
 
org.springframework.integration.dsl.PollerSpec
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<PollerMetadata>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
public final class PollerSpec
extends IntegrationComponentSpec<PollerSpec,PollerMetadata>
implements ComponentsRegistration 
An 
IntegrationComponentSpec for PollerMetadatas.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Method SummaryModifier and TypeMethodDescriptionSpecify AOPAdvices for thepollingTask.errorChannel(String errorChannelName) Specify a bean name for theMessageChannelto use for sending error message in case of polling failures.errorChannel(MessageChannel errorChannel) Specify aMessageChannelto use for sending error message in case of polling failures.errorHandler(ErrorHandler errorHandler) maxMessagesPerPoll(long maxMessagesPerPoll) receiveTimeout(long receiveTimeout) Specify a timeout in milliseconds to wait for a message in theMessageChannel.sendTimeout(long sendTimeout) taskExecutor(Executor taskExecutor) Specify anExecutorto perform thepollingTask.Specify aTransactionInterceptorAdvicewith defaultPlatformTransactionManagerandDefaultTransactionAttributefor thepollingTask.transactional(TransactionInterceptor transactionInterceptor) transactional(TransactionManager transactionManager) Specify aTransactionInterceptorAdvicewith the providedPlatformTransactionManagerand defaultDefaultTransactionAttributefor thepollingTask.transactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory) Specify theTransactionSynchronizationFactoryto attach aTransactionSynchronizationto the transaction aroundpolloperation.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Method Details- 
transactionSynchronizationFactorypublic PollerSpec transactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory) Specify theTransactionSynchronizationFactoryto attach aTransactionSynchronizationto the transaction aroundpolloperation.- Parameters:
- transactionSynchronizationFactory- the TransactionSynchronizationFactory to use.
- Returns:
- the spec.
 
- 
errorHandler- Parameters:
- errorHandler- the- ErrorHandlerto use.
- Returns:
- the spec.
- See Also:
 
- 
errorChannelSpecify aMessageChannelto use for sending error message in case of polling failures.- Parameters:
- errorChannel- the- MessageChannelto use.
- Returns:
- the spec.
- See Also:
 
- 
errorChannelSpecify a bean name for theMessageChannelto use for sending error message in case of polling failures.- Parameters:
- errorChannelName- the bean name for- MessageChannelto use.
- Returns:
- the spec.
- See Also:
 
- 
maxMessagesPerPoll- Parameters:
- maxMessagesPerPoll- the maxMessagesPerPoll to set.
- Returns:
- the spec.
- See Also:
 
- 
receiveTimeoutSpecify a timeout in milliseconds to wait for a message in theMessageChannel. Defaults to1000.- Parameters:
- receiveTimeout- the timeout to use.
- Returns:
- the spec.
- See Also:
 
- 
adviceSpecify AOPAdvices for thepollingTask.- Parameters:
- advice- the- Advices to use.
- Returns:
- the spec.
 
- 
transactionalSpecify aTransactionInterceptorAdvicewith the providedPlatformTransactionManagerand defaultDefaultTransactionAttributefor thepollingTask.- Parameters:
- transactionManager- the- TransactionManagerto use.
- Returns:
- the spec.
 
- 
transactionalSpecify aTransactionInterceptorAdvicewith defaultPlatformTransactionManagerandDefaultTransactionAttributefor thepollingTask.- Returns:
- the spec.
 
- 
transactional- Parameters:
- transactionInterceptor- the- TransactionInterceptorto use.
- Returns:
- the spec.
- See Also:
 
- 
taskExecutorSpecify anExecutorto perform thepollingTask.- Parameters:
- taskExecutor- the- Executorto use.
- Returns:
- the spec.
 
- 
sendTimeout
- 
getComponentsToRegister- Specified by:
- getComponentsToRegisterin interface- ComponentsRegistration
 
 
-