Class ThreadPoolFactory


  • public class ThreadPoolFactory
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ThreadPool create​(int minSize, int maxSize, long timeout, java.lang.String threadpoolName)
      Create a bounded thread pool in the current thread group with the current context ClassLoader as the worker thread default ClassLoader.
      ThreadPool create​(int minSize, int maxSize, long timeout, java.lang.String threadpoolName, java.lang.ClassLoader defaultClassLoader)
      Create a bounded thread pool in the current thread group with the given ClassLoader as the worker thread default ClassLoader.
      ThreadPool create​(java.lang.String threadpoolName)
      Create an unbounded thread pool in the current thread group with the current context ClassLoader as the worker thread default ClassLoader.
      ThreadPool create​(java.lang.ThreadGroup tg, java.lang.String threadpoolName)
      Create an unbounded thread pool in the given thread group with the current context ClassLoader as the worker thread default ClassLoader.
      ThreadPool create​(java.lang.ThreadGroup tg, java.lang.String threadpoolName, java.lang.ClassLoader defaultClassLoader)
      Create an unbounded thread pool in the given thread group with the given ClassLoader as the worker thread default ClassLoader.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadPoolFactory

        public ThreadPoolFactory()
    • Method Detail

      • create

        public ThreadPool create​(java.lang.String threadpoolName)
        Create an unbounded thread pool in the current thread group with the current context ClassLoader as the worker thread default ClassLoader.
      • create

        public ThreadPool create​(java.lang.ThreadGroup tg,
                                 java.lang.String threadpoolName)
        Create an unbounded thread pool in the given thread group with the current context ClassLoader as the worker thread default ClassLoader.
      • create

        public ThreadPool create​(java.lang.ThreadGroup tg,
                                 java.lang.String threadpoolName,
                                 java.lang.ClassLoader defaultClassLoader)
        Create an unbounded thread pool in the given thread group with the given ClassLoader as the worker thread default ClassLoader.
      • create

        public ThreadPool create​(int minSize,
                                 int maxSize,
                                 long timeout,
                                 java.lang.String threadpoolName)
        Create a bounded thread pool in the current thread group with the current context ClassLoader as the worker thread default ClassLoader.
      • create

        public ThreadPool create​(int minSize,
                                 int maxSize,
                                 long timeout,
                                 java.lang.String threadpoolName,
                                 java.lang.ClassLoader defaultClassLoader)
        Create a bounded thread pool in the current thread group with the given ClassLoader as the worker thread default ClassLoader.