public interface ThreadPoolFactory
Modifier and Type | Field and Description |
---|---|
static String |
FACTORY
Service factory key.
|
Modifier and Type | Method and Description |
---|---|
ExecutorService |
newCachedThreadPool(ThreadFactory threadFactory)
Deprecated.
|
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
|
static final String FACTORY
@Deprecated 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