org.apache.camel.component.feed
Class FeedPollingConsumer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer
          extended by org.apache.camel.impl.ScheduledPollConsumer
              extended by 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.


Field Summary
static long DEFAULT_CONSUMER_DELAY
           
protected  FeedEndpoint endpoint
           
 
Fields inherited from class org.apache.camel.impl.DefaultConsumer
log
 
Constructor Summary
FeedPollingConsumer(FeedEndpoint endpoint, Processor processor)
           
 
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.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Field Detail

DEFAULT_CONSUMER_DELAY

public static final long DEFAULT_CONSUMER_DELAY
See Also:
Constant Field Values

endpoint

protected final FeedEndpoint endpoint
Constructor Detail

FeedPollingConsumer

public FeedPollingConsumer(FeedEndpoint endpoint,
                           Processor processor)
Method Detail

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