Package jadex.commons.concurrent
Class ThreadPoolFactory
- java.lang.Object
- 
- jadex.commons.concurrent.ThreadPoolFactory
 
- 
 public class ThreadPoolFactory extends java.lang.ObjectFactory class for obtaining a thread pool.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringTHREADPOOL_JAVA5The java 5.0 thread pool implementation.static java.lang.StringTHREADPOOL_STANDARDThe standard (1.4 compliant) thread pool implementation.protected static java.util.MapthreadpoolsThe threadpools per name.
 - 
Constructor SummaryConstructors Constructor Description ThreadPoolFactory()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static IThreadPoolcreateThreadPool()Create a local thread pool.static IThreadPoolgetThreadPool(java.lang.String name)Get the global thread pool instance.
 
- 
- 
- 
Field Detail- 
THREADPOOL_STANDARDpublic static final java.lang.String THREADPOOL_STANDARD The standard (1.4 compliant) thread pool implementation.- See Also:
- Constant Field Values
 
 - 
THREADPOOL_JAVA5public static final java.lang.String THREADPOOL_JAVA5 The java 5.0 thread pool implementation.- See Also:
- Constant Field Values
 
 - 
threadpoolsprotected static final java.util.Map threadpools The threadpools per name.
 
- 
 - 
Method Detail- 
getThreadPoolpublic static IThreadPool getThreadPool(java.lang.String name) Get the global thread pool instance.- Returns:
- The global thread pool.
 
 - 
createThreadPoolpublic static IThreadPool createThreadPool() Create a local thread pool. Can be used if a separate pool of threads independent from the global thread pool is required.- Returns:
- A new local thread pool.
 
 
- 
 
-