Class CachedThreadPool

java.lang.Object
org.apache.dubbo.common.threadpool.support.cached.CachedThreadPool
All Implemented Interfaces:
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.
See Also:
  • Constructor Details

    • CachedThreadPool

      public CachedThreadPool()
  • Method Details

    • getExecutor

      public Executor getExecutor(URL url)
      Description copied from interface: ThreadPool
      Thread pool
      Specified by:
      getExecutor in interface ThreadPool
      Parameters:
      url - URL contains thread parameter
      Returns:
      thread pool