public abstract class FeedPollingConsumer extends ScheduledPollConsumer
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_CONSUMER_DELAY |
protected FeedEndpoint |
endpoint |
logshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
FeedPollingConsumer(FeedEndpoint endpoint,
Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
createFeed() |
protected int |
poll()
The polling method which is invoked periodically to poll this consumer
|
afterPoll, beforePoll, doShutdown, doStart, doStop, doSuspend, getBackoffCounter, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isPollAllowed, isPolling, isSchedulerStarted, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, onInit, processEmptyMessage, run, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay, startSchedulercreateUoW, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toStringdoResume, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic static final long DEFAULT_CONSUMER_DELAY
protected final FeedEndpoint endpoint
public FeedPollingConsumer(FeedEndpoint endpoint, Processor processor)
protected int poll()
throws Exception
ScheduledPollConsumerpoll in class ScheduledPollConsumerException - can be thrown if an exception occurred during pollingCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.