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, submitListenable
afterPropertiesSet, destroy, initialize, setAwaitTerminationMillis, setAwaitTerminationSeconds, setBeanName, setRejectedExecutionHandler, setThreadFactory, setThreadNamePrefix, setWaitForTasksToCompleteOnShutdown
newThread
createThread, getDefaultThreadNamePrefix, getThreadGroup, getThreadNamePrefix, getThreadPriority, isDaemon, nextThreadName, setDaemon, setThreadGroup, setThreadGroupName, setThreadPriority
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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