org.springframework.integration.endpoint
Class PollingConsumer
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.AbstractPollingEndpoint
org.springframework.integration.endpoint.PollingConsumer
- All Implemented Interfaces:
- BeanClassLoaderAware, BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent
public class PollingConsumer
- extends AbstractPollingEndpoint
Message Endpoint that connects any MessageHandler
implementation
to a PollableChannel
.
- Author:
- Mark Fisher, Oleg Zhurakousky
Methods inherited from class org.springframework.integration.endpoint.AbstractPollingEndpoint |
doStart, doStop, onInit, setAdviceChain, setBeanClassLoader, setErrorHandler, setMaxMessagesPerPoll, setTaskExecutor, setTransactionDefinition, setTransactionManager, setTrigger |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, toString, writeMessageHistory |
PollingConsumer
public PollingConsumer(PollableChannel inputChannel,
MessageHandler handler)
setReceiveTimeout
public void setReceiveTimeout(long receiveTimeout)
doPoll
protected boolean doPoll()
- Specified by:
doPoll
in class AbstractPollingEndpoint
Copyright © 2010. All Rights Reserved.