类 CachedThreadPool

  • 所有已实现的接口:
    ThreadPool

    public class CachedThreadPool
    extends Object
    implements ThreadPool
    This thread pool is self-tuned. Thread will be recycled after idle for one minute, and new thread will be created for the upcoming request.
    另请参阅:
    Executors.newCachedThreadPool()
    • 构造器详细资料

      • CachedThreadPool

        public CachedThreadPool()
    • 方法详细资料

      • getExecutor

        public Executor getExecutor​(URL url)
        从接口复制的说明: ThreadPool
        Thread pool
        指定者:
        getExecutor 在接口中 ThreadPool
        参数:
        url - URL contains thread parameter
        返回:
        thread pool