org.apache.camel.component.feed
Class FeedPollingConsumer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.camel.impl.ScheduledPollConsumer
org.apache.camel.component.feed.FeedPollingConsumer
- All Implemented Interfaces:
- Runnable, Consumer, Service, ShutdownableService, SuspendableService
- Direct Known Subclasses:
- AtomPollingConsumer, FeedEntryPollingConsumer, RssPollingConsumer
public abstract class FeedPollingConsumer
- extends ScheduledPollConsumer
Base class for consuming feeds.
|
Method Summary |
protected abstract Object |
createFeed()
|
protected void |
poll()
The polling method which is invoked periodically to poll this consumer |
| Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer |
doStart, doStop, doSuspend, getDelay, getInitialDelay, getPollStrategy, getTimeUnit, isPollAllowed, isUseFixedDelay, run, setDelay, setInitialDelay, setPollStrategy, setTimeUnit, setUseFixedDelay |
| 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 |
DEFAULT_CONSUMER_DELAY
public static final long DEFAULT_CONSUMER_DELAY
- See Also:
- Constant Field Values
endpoint
protected final FeedEndpoint endpoint
FeedPollingConsumer
public FeedPollingConsumer(FeedEndpoint endpoint,
Processor processor)
poll
protected void poll()
throws Exception
- Description copied from class:
ScheduledPollConsumer
- The polling method which is invoked periodically to poll this consumer
- Specified by:
poll in class ScheduledPollConsumer
- Throws:
Exception - can be thrown if an exception occurred during polling
createFeed
protected abstract Object createFeed()
throws Exception
- Throws:
Exception
Apache CAMEL