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() |
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
public 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.ThreadPoolTaskScheduler
public void shutdown()
shutdown
in class org.springframework.scheduling.concurrent.ExecutorConfigurationSupport
Apache Camel