public interface ThreadPoolFactory
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
newCachedThreadPool(ThreadFactory threadFactory)
Creates a new cached thread pool
The cached thread pool is a term from the JDK from the method
Executors.newCachedThreadPool(). |
ScheduledExecutorService |
newScheduledThreadPool(ThreadPoolProfile profile,
ThreadFactory threadFactory)
Create a scheduled thread pool using the given thread pool profile
|
ExecutorService |
newThreadPool(ThreadPoolProfile profile,
ThreadFactory threadFactory)
Create a thread pool using the given thread pool profile
|
ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
Executors.newCachedThreadPool().
Typically it will have no size limit (this is why it is handled separatelythreadFactory - factory for creating threadsExecutorService newThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory)
profile - parameters of the thread poolthreadFactory - factory for creating threadsScheduledExecutorService newScheduledThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory)
profile - parameters of the thread poolthreadFactory - factory for creating threadsApache Camel