public class DefaultScheduledPollConsumerScheduler
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.ScheduledPollConsumerScheduler
ScheduledBatchPollingConsumer
.Constructor and Description |
---|
DefaultScheduledPollConsumerScheduler() |
DefaultScheduledPollConsumerScheduler(ScheduledExecutorService scheduledExecutorService) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
int |
getConcurrentTasks() |
long |
getDelay() |
long |
getInitialDelay() |
ScheduledExecutorService |
getScheduledExecutorService() |
TimeUnit |
getTimeUnit() |
boolean |
isSchedulerStarted() |
boolean |
isUseFixedDelay() |
void |
onInit(org.apache.camel.Consumer consumer) |
void |
scheduleTask(Runnable task) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setConcurrentTasks(int concurrentTasks) |
void |
setDelay(long delay) |
void |
setInitialDelay(long initialDelay) |
void |
setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService) |
void |
setTimeUnit(TimeUnit timeUnit) |
void |
setUseFixedDelay(boolean useFixedDelay) |
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, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DefaultScheduledPollConsumerScheduler()
public DefaultScheduledPollConsumerScheduler(ScheduledExecutorService scheduledExecutorService)
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public long getInitialDelay()
public void setInitialDelay(long initialDelay)
public long getDelay()
public void setDelay(long delay)
public TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
public boolean isUseFixedDelay()
public void setUseFixedDelay(boolean useFixedDelay)
public ScheduledExecutorService getScheduledExecutorService()
public void setScheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
public int getConcurrentTasks()
public void setConcurrentTasks(int concurrentTasks)
public void onInit(org.apache.camel.Consumer consumer)
onInit
in interface org.apache.camel.spi.ScheduledPollConsumerScheduler
public void scheduleTask(Runnable task)
scheduleTask
in interface org.apache.camel.spi.ScheduledPollConsumerScheduler
public void unscheduleTask()
unscheduleTask
in interface org.apache.camel.spi.ScheduledPollConsumerScheduler
public void startScheduler()
startScheduler
in interface org.apache.camel.spi.ScheduledPollConsumerScheduler
public boolean isSchedulerStarted()
isSchedulerStarted
in interface org.apache.camel.spi.ScheduledPollConsumerScheduler
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.BaseService
Exception
Apache Camel