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) |
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) |
createUoW, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, handleException, handleException, setExceptionHandler, setRoute, toStringdoInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic TimerConsumer(TimerEndpoint endpoint, org.apache.camel.Processor processor)
public TimerEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultConsumerprotected 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