public class CamelThreadPoolTaskScheduler
extends org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
ThreadPoolTaskScheduler which uses the
ExecutorServiceManager to create and destroy the thread pool, which ensures the thread
pool is also managed and consistent with other usages of thread pools in Camel.| Constructor and Description |
|---|
CamelThreadPoolTaskScheduler(org.apache.camel.CamelContext camelContext,
Object source,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected ScheduledExecutorService |
createExecutor(int poolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler rejectedExecutionHandler) |
void |
shutdown() |
cancelRemainingTask, execute, execute, getActiveCount, getClock, getPoolSize, getScheduledExecutor, getScheduledThreadPoolExecutor, initializeExecutor, isRemoveOnCancelPolicy, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate, scheduleWithFixedDelay, scheduleWithFixedDelay, setClock, setContinueExistingPeriodicTasksAfterShutdownPolicy, setErrorHandler, setExecuteExistingDelayedTasksAfterShutdownPolicy, setPoolSize, setRemoveOnCancelPolicy, submit, submit, submitListenable, submitListenableafterPropertiesSet, destroy, initialize, setAwaitTerminationMillis, setAwaitTerminationSeconds, setBeanName, setRejectedExecutionHandler, setThreadFactory, setThreadNamePrefix, setWaitForTasksToCompleteOnShutdownnewThreadcreateThread, getDefaultThreadNamePrefix, getThreadGroup, getThreadNamePrefix, getThreadPriority, isDaemon, nextThreadName, setDaemon, setThreadGroup, setThreadGroupName, setThreadPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected ScheduledExecutorService createExecutor(int poolSize, ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler)
createExecutor in class org.springframework.scheduling.concurrent.ThreadPoolTaskSchedulerpublic void shutdown()
shutdown in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupportApache Camel