Package jadex.concurrent
Class ThreadPoolFactory
java.lang.Object
jadex.concurrent.ThreadPoolFactory
Factory class for obtaining a thread pool.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IThreadPool
Create a local thread pool.static IThreadPool
getThreadPool
(String name) Get the global thread pool instance.
-
Field Details
-
THREADPOOL_STANDARD
The standard (1.4 compliant) thread pool implementation.- See Also:
-
THREADPOOL_JAVA5
The java 5.0 thread pool implementation.- See Also:
-
threadpools
The threadpools per name.
-
-
Constructor Details
-
ThreadPoolFactory
public ThreadPoolFactory()
-
-
Method Details
-
getThreadPool
Get the global thread pool instance.- Returns:
- The global thread pool.
-
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.
-