public class TimerConsumer
extends org.apache.camel.support.DefaultConsumer
implements org.apache.camel.StartupListener, org.apache.camel.Suspendable
| Constructor and Description |
|---|
TimerConsumer(TimerEndpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureTask(TimerTask task,
Timer timer) |
void |
doInit() |
protected void |
doStart() |
protected void |
doStop() |
TimerEndpoint |
getEndpoint() |
protected boolean |
isTaskRunAllowed()
Whether the timer task is allow to run or not
|
void |
onCamelContextStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted) |
protected void |
sendTimerExchange(long counter) |
createExchange, createUoW, defaultConsumerCallback, doBuild, doneUoW, doShutdown, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, releaseExchange, setExceptionHandler, setRoute, setRouteId, toStringbuild, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonCamelContextFullyStarted, onCamelContextStartingpublic TimerConsumer(TimerEndpoint endpoint, org.apache.camel.Processor processor)
public TimerEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultConsumerpublic void doInit()
throws Exception
doInit in class org.apache.camel.support.DefaultConsumerExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultConsumerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultConsumerExceptionpublic void onCamelContextStarted(org.apache.camel.CamelContext context,
boolean alreadyStarted)
throws Exception
onCamelContextStarted in interface org.apache.camel.StartupListenerExceptionprotected boolean isTaskRunAllowed()
protected void sendTimerExchange(long counter)
Apache Camel