Class ThreadPoolFactory


  • public class ThreadPoolFactory
    extends java.lang.Object
    Factory class for obtaining a thread pool.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String THREADPOOL_JAVA5
      The java 5.0 thread pool implementation.
      static java.lang.String THREADPOOL_STANDARD
      The standard (1.4 compliant) thread pool implementation.
      protected static java.util.Map threadpools
      The threadpools per name.
    • Field Detail

      • THREADPOOL_STANDARD

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

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

        protected static final java.util.Map threadpools
        The threadpools per name.
    • Constructor Detail

      • ThreadPoolFactory

        public ThreadPoolFactory()
    • Method Detail

      • getThreadPool

        public static IThreadPool getThreadPool​(java.lang.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.