public class DefaultThreadPoolFactory extends ThreadPoolFactory
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
muleContext| Constructor and Description |
|---|
DefaultThreadPoolFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureThreadFactory(String name,
ThreadingProfile tp,
ThreadPoolExecutor pool) |
ThreadPoolExecutor |
createPool(String name,
ThreadingProfile tp) |
ScheduledThreadPoolExecutor |
createScheduledPool(String name,
ThreadingProfile tp)
By limitations of java's
ScheduledThreadPoolExecutor, ThreadingProfile.getMaxThreadsActive() will
be ignored and a fixed pool with ThreadingProfile.getMaxThreadsIdle() will be created. |
protected ThreadPoolExecutor |
internalCreatePool(String name,
ThreadingProfile tp,
BlockingQueue buffer) |
protected ScheduledThreadPoolExecutor |
internalCreateScheduledPool(ThreadingProfile tp) |
newInstance, setMuleContextpublic ThreadPoolExecutor createPool(String name, ThreadingProfile tp)
createPool in class ThreadPoolFactorypublic ScheduledThreadPoolExecutor createScheduledPool(String name, ThreadingProfile tp)
ThreadPoolFactoryScheduledThreadPoolExecutor, ThreadingProfile.getMaxThreadsActive() will
be ignored and a fixed pool with ThreadingProfile.getMaxThreadsIdle() will be created.createScheduledPool in class ThreadPoolFactoryprotected void configureThreadFactory(String name, ThreadingProfile tp, ThreadPoolExecutor pool)
protected ThreadPoolExecutor internalCreatePool(String name, ThreadingProfile tp, BlockingQueue buffer)
protected ScheduledThreadPoolExecutor internalCreateScheduledPool(ThreadingProfile tp)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.