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, getPoolSize, getScheduledExecutor, getScheduledThreadPoolExecutor, initializeExecutor, isRemoveOnCancelPolicy, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate, scheduleWithFixedDelay, scheduleWithFixedDelay, setErrorHandler, setPoolSize, setRemoveOnCancelPolicy, submit, submit, submitListenable, submitListenableafterPropertiesSet, destroy, initialize, 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, waitpublic CamelThreadPoolTaskScheduler(org.apache.camel.CamelContext camelContext, Object source, String name)
protected 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