org.apache.camel.impl
Class DefaultScheduledPollConsumer<E extends Exchange>

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer<E>
          extended by org.apache.camel.impl.ScheduledPollConsumer<E>
              extended by org.apache.camel.impl.DefaultScheduledPollConsumer<E>
All Implemented Interfaces:
Runnable, Consumer<E>, Service

public class DefaultScheduledPollConsumer<E extends Exchange>
extends ScheduledPollConsumer<E>

A default implementation of an event driven Consumer which uses the PollingConsumer

Version:
$Revision: 640438 $

Constructor Summary
DefaultScheduledPollConsumer(DefaultEndpoint<E> defaultEndpoint, Processor processor)
           
DefaultScheduledPollConsumer(Endpoint<E> endpoint, Processor processor, ScheduledExecutorService executor)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
protected  void poll()
          The polling method which is invoked periodically to poll this consumer
 
Methods inherited from class org.apache.camel.impl.ScheduledPollConsumer
getDelay, getInitialDelay, getTimeUnit, isUseFixedDelay, run, setDelay, setInitialDelay, 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, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

DefaultScheduledPollConsumer

public DefaultScheduledPollConsumer(DefaultEndpoint<E> defaultEndpoint,
                                    Processor processor)

DefaultScheduledPollConsumer

public DefaultScheduledPollConsumer(Endpoint<E> endpoint,
                                    Processor processor,
                                    ScheduledExecutorService executor)
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<E extends Exchange>
Throws:
Exception - can be thrown if an exception occurred during polling

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class ScheduledPollConsumer<E extends Exchange>
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class ScheduledPollConsumer<E extends Exchange>
Throws:
Exception


Apache CAMEL