|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.DefaultThreadPoolFactory
public class DefaultThreadPoolFactory
Factory for thread pools that uses the JDK Executors
for creating the thread pools.
Constructor Summary | |
---|---|
DefaultThreadPoolFactory()
|
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(int corePoolSize,
int maxPoolSize,
long keepAliveTime,
TimeUnit timeUnit,
int maxQueueSize,
RejectedExecutionHandler rejectedExecutionHandler,
ThreadFactory threadFactory)
|
ExecutorService |
newThreadPool(ThreadPoolProfile profile,
ThreadFactory factory)
Create a thread pool using the given thread pool profile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultThreadPoolFactory()
Method Detail |
---|
public ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
ThreadPoolFactory
Executors.newCachedThreadPool()
.
Typically it will have no size limit (this is why it is handled separately
newCachedThreadPool
in interface ThreadPoolFactory
threadFactory
- factory for creating threads
public ExecutorService newThreadPool(ThreadPoolProfile profile, ThreadFactory factory)
ThreadPoolFactory
newThreadPool
in interface ThreadPoolFactory
profile
- parameters of the thread poolfactory
- factory for creating threads
public ExecutorService newThreadPool(int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit timeUnit, int maxQueueSize, RejectedExecutionHandler rejectedExecutionHandler, ThreadFactory threadFactory) throws IllegalArgumentException
IllegalArgumentException
public ScheduledExecutorService newScheduledThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory)
ThreadPoolFactory
newScheduledThreadPool
in interface ThreadPoolFactory
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 |