public class SpringScheduledPollConsumerScheduler
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.ScheduledPollConsumerScheduler, org.apache.camel.NonManagedService
ScheduledPollConsumerScheduler which uses a CronTrigger to define when the poll should
be triggered.| Constructor and Description |
|---|
SpringScheduledPollConsumerScheduler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
String |
getCron() |
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler |
getTaskScheduler() |
TimeZone |
getTimeZone() |
boolean |
isSchedulerStarted() |
void |
onInit(org.apache.camel.Consumer consumer) |
void |
scheduleTask(Runnable runnable) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setCron(String cron) |
void |
setTaskScheduler(org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler taskScheduler) |
void |
setTimeZone(TimeZone timeZone) |
void |
startScheduler() |
void |
unscheduleTask() |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, 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, toString, wait, wait, waitpublic SpringScheduledPollConsumerScheduler()
public void onInit(org.apache.camel.Consumer consumer)
onInit in interface org.apache.camel.spi.ScheduledPollConsumerSchedulerpublic void scheduleTask(Runnable runnable)
scheduleTask in interface org.apache.camel.spi.ScheduledPollConsumerSchedulerpublic void unscheduleTask()
unscheduleTask in interface org.apache.camel.spi.ScheduledPollConsumerSchedulerpublic void startScheduler()
startScheduler in interface org.apache.camel.spi.ScheduledPollConsumerSchedulerpublic boolean isSchedulerStarted()
isSchedulerStarted in interface org.apache.camel.spi.ScheduledPollConsumerSchedulerpublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic String getCron()
public void setCron(String cron)
public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler getTaskScheduler()
public void setTaskScheduler(org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler taskScheduler)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionApache Camel