public abstract class ThreadPoolFactory extends Object implements MuleContextAware
Modifier and Type | Field and Description |
---|---|
protected MuleContext |
muleContext |
Constructor and Description |
---|
ThreadPoolFactory() |
Modifier and Type | Method and Description |
---|---|
abstract ThreadPoolExecutor |
createPool(String name,
ThreadingProfile tp) |
abstract 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. |
static ThreadPoolFactory |
newInstance() |
void |
setMuleContext(MuleContext context) |
protected MuleContext muleContext
public static ThreadPoolFactory newInstance()
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public abstract ThreadPoolExecutor createPool(String name, ThreadingProfile tp)
public abstract ScheduledThreadPoolExecutor createScheduledPool(String name, ThreadingProfile tp)
ScheduledThreadPoolExecutor
, ThreadingProfile.getMaxThreadsActive()
will
be ignored and a fixed pool with ThreadingProfile.getMaxThreadsIdle()
will be created.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.