org.apache.camel.component.feed
Class FeedEntryPollingConsumer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.camel.impl.ScheduledPollConsumer
org.apache.camel.component.feed.FeedPollingConsumer
org.apache.camel.component.feed.FeedEntryPollingConsumer
- All Implemented Interfaces:
- Runnable, org.apache.camel.Consumer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.SuspendableService
- Direct Known Subclasses:
- AtomEntryPollingConsumer
public abstract class FeedEntryPollingConsumer
- extends FeedPollingConsumer
Consumer to poll feeds and return each entry from the feed step by step.
| Fields inherited from class org.apache.camel.impl.DefaultConsumer |
log |
| Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer |
doStart, doStop, doSuspend, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getTimeUnit, isPollAllowed, isUseFixedDelay, run, setDelay, setInitialDelay, setPollStrategy, setRunLoggingLevel, setTimeUnit, setUseFixedDelay |
| Methods inherited from class org.apache.camel.impl.DefaultConsumer |
getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from interface org.apache.camel.SuspendableService |
isSuspended, resume, suspend |
| Methods inherited from interface org.apache.camel.Service |
start, stop |
entryIndex
protected int entryIndex
entryFilter
protected EntryFilter entryFilter
list
protected List list
throttleEntries
protected boolean throttleEntries
feed
protected Object feed
FeedEntryPollingConsumer
public FeedEntryPollingConsumer(FeedEndpoint endpoint,
org.apache.camel.Processor processor,
boolean filter,
Date lastUpdate,
boolean throttleEntries)
poll
public int poll()
throws Exception
- Overrides:
poll in class FeedPollingConsumer
- Throws:
Exception
createEntryFilter
protected abstract EntryFilter createEntryFilter(Date lastUpdate)
resetList
protected abstract void resetList()
populateList
protected abstract void populateList(Object feed)
throws Exception
- Throws:
Exception
Apache CAMEL