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 BeanClassLoaderAware
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractPollingEndpoint
public AbstractPollingEndpoint()
setPollerMetadata
@Deprecated
public void setPollerMetadata(PollerMetadata pollerMetadata)
- Deprecated. As of release 2.0.2, use individual setters
setTaskExecutor
public void setTaskExecutor(java.util.concurrent.Executor taskExecutor)
setTrigger
public void setTrigger(Trigger trigger)
setAdviceChain
public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
setMaxMessagesPerPoll
public void setMaxMessagesPerPoll(long maxMessagesPerPoll)
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
setBeanClassLoader
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
- Specified by:
setBeanClassLoader
in interface BeanClassLoaderAware
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()