public class DefaultThreadPoolFactory extends ThreadPoolFactory
Modifier and Type | Field and Description |
---|---|
protected 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, setMuleContext
protected final Log logger
public ThreadPoolExecutor createPool(String name, ThreadingProfile tp)
createPool
in class ThreadPoolFactory
public ScheduledThreadPoolExecutor createScheduledPool(String name, ThreadingProfile tp)
ThreadPoolFactory
ScheduledThreadPoolExecutor
, ThreadingProfile.getMaxThreadsActive()
will
be ignored and a fixed pool with ThreadingProfile.getMaxThreadsIdle()
will be created.createScheduledPool
in class ThreadPoolFactory
protected 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.