|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadPoolFactory
Creates ExecutorService and ScheduledExecutorService objects that work with a thread pool for a given ThreadPoolProfile and ThreadFactory. This interface allows to customize the creation of these objects to adapt camel for application servers and other environments where thread pools should not be created with the jdk methods
Method Summary | |
---|---|
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 |
Method Detail |
---|
ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
Executors.newCachedThreadPool()
.
Typically it will have no size limit (this is why it is handled separately
threadFactory
- factory for creating threads
ExecutorService newThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory)
profile
- parameters of the thread poolthreadFactory
- factory for creating threads
ScheduledExecutorService newScheduledThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory)
profile
- parameters of the thread poolthreadFactory
- factory for creating threads
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |