org.apache.camel.impl
Class DefaultScheduledPollConsumer<E extends Exchange>
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultConsumer<E>
org.apache.camel.impl.ScheduledPollConsumer<E>
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 $
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.ServiceSupport |
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
DefaultScheduledPollConsumer
public DefaultScheduledPollConsumer(DefaultEndpoint<E> defaultEndpoint,
Processor processor)
DefaultScheduledPollConsumer
public DefaultScheduledPollConsumer(Endpoint<E> endpoint,
Processor processor,
ScheduledExecutorService executor)
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