org.apache.camel.spring.util
Class CamelThreadPoolTaskScheduler
java.lang.Object
org.springframework.util.CustomizableThreadCreator
org.springframework.scheduling.concurrent.CustomizableThreadFactory
org.springframework.scheduling.concurrent.ExecutorConfigurationSupport
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
org.apache.camel.spring.util.CamelThreadPoolTaskScheduler
- All Implemented Interfaces:
- Serializable, Executor, ThreadFactory, Aware, BeanNameAware, DisposableBean, InitializingBean, AsyncTaskExecutor, TaskExecutor, SchedulingTaskExecutor, TaskScheduler
public class CamelThreadPoolTaskScheduler
- extends ThreadPoolTaskScheduler
A Camel extension of Spring's 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.
- See Also:
- Serialized Form
| Methods inherited from class org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler |
execute, execute, getScheduledExecutor, initializeExecutor, prefersShortLivedTasks, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate, scheduleWithFixedDelay, scheduleWithFixedDelay, setErrorHandler, setPoolSize, submit, submit |
| Methods inherited from class org.springframework.util.CustomizableThreadCreator |
createThread, getDefaultThreadNamePrefix, getThreadGroup, getThreadNamePrefix, getThreadPriority, isDaemon, nextThreadName, setDaemon, setThreadGroup, setThreadGroupName, setThreadPriority |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelThreadPoolTaskScheduler
public CamelThreadPoolTaskScheduler(org.apache.camel.CamelContext camelContext,
Object source,
String name)
createExecutor
protected ScheduledExecutorService createExecutor(int poolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler rejectedExecutionHandler)
- Overrides:
createExecutor in class ThreadPoolTaskScheduler
shutdown
public void shutdown()
- Overrides:
shutdown in class ExecutorConfigurationSupport
Apache Camel