public class CamelThreadPoolTaskScheduler extends 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.logger
TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITE
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() |
execute, execute, getScheduledExecutor, initializeExecutor, prefersShortLivedTasks, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate, scheduleWithFixedDelay, scheduleWithFixedDelay, setErrorHandler, setPoolSize, submit, submit
afterPropertiesSet, destroy, initialize, setAwaitTerminationSeconds, setBeanName, setRejectedExecutionHandler, setThreadFactory, setThreadNamePrefix, setWaitForTasksToCompleteOnShutdown
newThread
createThread, getDefaultThreadNamePrefix, getThreadGroup, getThreadNamePrefix, getThreadPriority, isDaemon, nextThreadName, setDaemon, setThreadGroup, setThreadGroupName, setThreadPriority
public CamelThreadPoolTaskScheduler(org.apache.camel.CamelContext camelContext, Object source, String name)
protected ScheduledExecutorService createExecutor(int poolSize, ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler)
createExecutor
in class ThreadPoolTaskScheduler
public void shutdown()
shutdown
in class ExecutorConfigurationSupport
Apache Camel