@UriEndpoint(firstVersion="2.15.0",
scheme="scheduler",
title="Scheduler",
syntax="scheduler:name",
consumerOnly=true,
category={CORE,SCHEDULING})
public class SchedulerEndpoint
extends org.apache.camel.support.ScheduledPollEndpoint
java.util.concurrent.ScheduledExecutorService.
This component is similar to the timer component, but it offers more functionality in terms of scheduling. Also this
component uses JDK ScheduledExecutorService. Where as the timer uses a JDK Timer.| Constructor and Description |
|---|
SchedulerEndpoint(String uri,
SchedulerComponent component,
String remaining) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
SchedulerComponent |
getComponent() |
int |
getConcurrentTasks() |
String |
getName() |
void |
onConsumerStart(SchedulerConsumer consumer) |
void |
onConsumerStop(SchedulerConsumer consumer) |
void |
setConcurrentTasks(int concurrentTasks)
Number of threads used by the scheduling thread pool.
|
void |
setName(String name)
The name of the scheduler
|
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringbuild, doBuild, doFail, 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, finalize, getClass, notify, notifyAll, wait, wait, waitpublic SchedulerEndpoint(String uri, SchedulerComponent component, String remaining)
public SchedulerComponent getComponent()
getComponent in class org.apache.camel.support.DefaultEndpointpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic String getName()
public void setName(String name)
public int getConcurrentTasks()
public void setConcurrentTasks(int concurrentTasks)
public void onConsumerStart(SchedulerConsumer consumer)
public void onConsumerStop(SchedulerConsumer consumer)
Apache Camel