org.mule.config.pool
Class ThreadPoolFactory

java.lang.Object
  extended by org.mule.config.pool.ThreadPoolFactory
All Implemented Interfaces:
MuleContextAware
Direct Known Subclasses:
DefaultThreadPoolFactory

public abstract class ThreadPoolFactory
extends Object
implements MuleContextAware

Uses a standard JDK's SPI discovery mechanism to locate implementations.


Field Summary
protected  MuleContext muleContext
           
 
Constructor Summary
ThreadPoolFactory()
           
 
Method Summary
abstract  ThreadPoolExecutor createPool(String name, ThreadingProfile tp)
           
abstract  ScheduledThreadPoolExecutor createScheduledPool(String name, ThreadingProfile tp)
           
static ThreadPoolFactory newInstance()
           
 void setMuleContext(MuleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

muleContext

protected MuleContext muleContext
Constructor Detail

ThreadPoolFactory

public ThreadPoolFactory()
Method Detail

newInstance

public static ThreadPoolFactory newInstance()
Returns:
a discovered

setMuleContext

public void setMuleContext(MuleContext context)
Specified by:
setMuleContext in interface MuleContextAware

createPool

public abstract ThreadPoolExecutor createPool(String name,
                                              ThreadingProfile tp)

createScheduledPool

public abstract ScheduledThreadPoolExecutor createScheduledPool(String name,
                                                                ThreadingProfile tp)


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.