Class ThreadPoolFactory

java.lang.Object
jadex.concurrent.ThreadPoolFactory

public class ThreadPoolFactory extends Object
Factory class for obtaining a thread pool.
  • Field Details

    • THREADPOOL_STANDARD

      public static final String THREADPOOL_STANDARD
      The standard (1.4 compliant) thread pool implementation.
      See Also:
    • THREADPOOL_JAVA5

      public static final String THREADPOOL_JAVA5
      The java 5.0 thread pool implementation.
      See Also:
    • threadpools

      protected static final Map threadpools
      The threadpools per name.
  • Constructor Details

    • ThreadPoolFactory

      public ThreadPoolFactory()
  • Method Details

    • getThreadPool

      public static IThreadPool getThreadPool(String name)
      Get the global thread pool instance.
      Returns:
      The global thread pool.
    • createThreadPool

      public 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.