org.springframework.integration.endpoint
Class AbstractPollingEndpoint
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.AbstractPollingEndpoint
- All Implemented Interfaces:
- BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent
- Direct Known Subclasses:
- PollingConsumer, SourcePollingChannelAdapter
public abstract class AbstractPollingEndpoint
- extends AbstractEndpoint
- implements InitializingBean, BeanClassLoaderAware
- Author:
- Mark Fisher
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, toString, writeMessageHistory |
MAX_MESSAGES_UNBOUNDED
public static final int MAX_MESSAGES_UNBOUNDED
- See Also:
- Constant Field Values
maxMessagesPerPoll
protected volatile long maxMessagesPerPoll
AbstractPollingEndpoint
public AbstractPollingEndpoint()
setTrigger
public void setTrigger(Trigger trigger)
setMaxMessagesPerPoll
public void setMaxMessagesPerPoll(int maxMessagesPerPoll)
- Set the maximum number of messages to receive for each poll.
A non-positive value indicates that polling should repeat as long
as non-null messages are being received and successfully sent.
The default is unbounded.
- See Also:
MAX_MESSAGES_UNBOUNDED
setTaskExecutor
public void setTaskExecutor(Executor taskExecutor)
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
setTransactionManager
public void setTransactionManager(PlatformTransactionManager transactionManager)
- Specify a transaction manager to use for all polling operations.
If none is provided, then the operations will occur without any
transactional behavior (i.e. there is no default transaction manager).
setTransactionDefinition
public void setTransactionDefinition(TransactionDefinition transactionDefinition)
setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)
- Specified by:
setBeanClassLoader
in interface BeanClassLoaderAware
setAdviceChain
public void setAdviceChain(List<org.aopalliance.aop.Advice> adviceChain)
onInit
protected void onInit()
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this for initialization logic.
- Overrides:
onInit
in class IntegrationObjectSupport
doStart
protected void doStart()
- Description copied from class:
AbstractEndpoint
- Subclasses must implement this method with the start behavior.
This method will be invoked while holding the
AbstractEndpoint.lifecycleLock
.
- Specified by:
doStart
in class AbstractEndpoint
doStop
protected void doStop()
- Description copied from class:
AbstractEndpoint
- Subclasses must implement this method with the stop behavior.
This method will be invoked while holding the
AbstractEndpoint.lifecycleLock
.
- Specified by:
doStop
in class AbstractEndpoint
doPoll
protected abstract boolean doPoll()
Copyright © 2010. All Rights Reserved.