org.apache.camel.component.quartz2
Class QuartzConsumer
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultConsumer
org.apache.camel.component.quartz2.QuartzConsumer
- All Implemented Interfaces:
- org.apache.camel.Consumer, org.apache.camel.RouteAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class QuartzConsumer
- extends org.apache.camel.impl.DefaultConsumer
This consumer process QuartzMessage when scheduler job is executed per scheduled time. When the job runs, it will
call this consumer's processor to process a new exchange with QuartzMessage.
Fields inherited from class org.apache.camel.impl.DefaultConsumer |
log |
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Constructor Summary |
QuartzConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor)
|
Methods inherited from class org.apache.camel.impl.DefaultConsumer |
createUoW, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from interface org.apache.camel.Service |
start, stop |
QuartzConsumer
public QuartzConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor)
getEndpoint
public QuartzEndpoint getEndpoint()
- Specified by:
getEndpoint
in interface org.apache.camel.Consumer
- Overrides:
getEndpoint
in class org.apache.camel.impl.DefaultConsumer
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
in class org.apache.camel.impl.DefaultConsumer
- Throws:
Exception
doResume
protected void doResume()
throws Exception
- Overrides:
doResume
in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class org.apache.camel.impl.DefaultConsumer
- Throws:
Exception
doSuspend
protected void doSuspend()
throws Exception
- Overrides:
doSuspend
in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
Apache Camel