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, SuspendableService
- Direct Known Subclasses:
- AtomPollingConsumer, FeedEntryPollingConsumer
public abstract class FeedPollingConsumer
- extends ScheduledPollConsumer
Base class for consuming feeds.
| Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer |
doStart, doStop, getDelay, getInitialDelay, getPollStrategy, getTimeUnit, isSuspended, isUseFixedDelay, resume, run, setDelay, setInitialDelay, setPollStrategy, setTimeUnit, setUseFixedDelay, suspend |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
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
- Specified by:
poll in class ScheduledPollConsumer
- Throws:
Exception
createFeed
protected abstract Object createFeed()
throws Exception
- Throws:
Exception
Copyright © 2007-2009 The Apache Software Foundation. All Rights Reserved.