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(ThreadPoolConfig config,
ThreadFactory threadFactory)
Create a scheduled thread pool using the given thread pool profile
|
ExecutorService |
newThreadPool(ThreadPoolConfig config,
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(ThreadPoolConfig config, ThreadFactory threadFactory)
config - parameters of the thread poolthreadFactory - factory for creating threadsScheduledExecutorService newScheduledThreadPool(ThreadPoolConfig config, ThreadFactory threadFactory)
config - parameters of the thread poolthreadFactory - factory for creating threadsCopyright © 2003–2018 eXo Platform SAS. All rights reserved.