org.apache.camel.impl
Class DefaultScheduledPollConsumer

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.impl.DefaultScheduledPollConsumer
All Implemented Interfaces:
Runnable, Consumer, Service, SuspendableService

public class DefaultScheduledPollConsumer
extends ScheduledPollConsumer

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

Version:
$Revision: 893138 $

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultConsumer
log
 
Constructor Summary
DefaultScheduledPollConsumer(DefaultEndpoint defaultEndpoint, Processor processor)
           
DefaultScheduledPollConsumer(Endpoint 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, getPollStrategy, getTimeUnit, isPollAllowed, isSuspended, isUseFixedDelay, resume, run, setDelay, setInitialDelay, setPollStrategy, setTimeUnit, setUseFixedDelay, suspend
 
Methods inherited from class org.apache.camel.impl.DefaultConsumer
getEndpoint, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, 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 defaultEndpoint,
                                    Processor processor)

DefaultScheduledPollConsumer

public DefaultScheduledPollConsumer(Endpoint 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
Throws:
Exception - can be thrown if an exception occurred during polling

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class ScheduledPollConsumer
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class ScheduledPollConsumer
Throws:
Exception


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.