|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.util.CustomizableThreadCreator
org.springframework.scheduling.concurrent.CustomizableThreadFactory
org.springframework.scheduling.concurrent.ExecutorConfigurationSupport
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
org.apache.camel.spring.util.CamelThreadPoolTaskScheduler
public class CamelThreadPoolTaskScheduler
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.
Field Summary |
---|
Fields inherited from class org.springframework.scheduling.concurrent.ExecutorConfigurationSupport |
---|
logger |
Fields inherited from interface org.springframework.core.task.AsyncTaskExecutor |
---|
TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITE |
Constructor Summary | |
---|---|
CamelThreadPoolTaskScheduler(org.apache.camel.CamelContext camelContext,
Object source,
String name)
|
Method Summary | |
---|---|
protected ScheduledExecutorService |
createExecutor(int poolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler rejectedExecutionHandler)
|
void |
shutdown()
|
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.scheduling.concurrent.ExecutorConfigurationSupport |
---|
afterPropertiesSet, destroy, initialize, setAwaitTerminationSeconds, setBeanName, setRejectedExecutionHandler, setThreadFactory, setThreadNamePrefix, setWaitForTasksToCompleteOnShutdown |
Methods inherited from class org.springframework.scheduling.concurrent.CustomizableThreadFactory |
---|
newThread |
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 |
Constructor Detail |
---|
public CamelThreadPoolTaskScheduler(org.apache.camel.CamelContext camelContext, Object source, String name)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |