com.alibaba.dubbo.common.threadpool.support.cached
Class CachedThreadPool

java.lang.Object
  extended by com.alibaba.dubbo.common.threadpool.support.cached.CachedThreadPool
All Implemented Interfaces:
ThreadPool

public class CachedThreadPool
extends Object
implements ThreadPool

此线程池可伸缩,线程空闲一分钟后回收,新请求重新创建线程,来源于:Executors.newCachedThreadPool()

Author:
william.liangf
See Also:
Executors.newCachedThreadPool()

Constructor Summary
CachedThreadPool()
           
 
Method Summary
 Executor getExecutor(URL url)
          线程池
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedThreadPool

public CachedThreadPool()
Method Detail

getExecutor

public Executor getExecutor(URL url)
Description copied from interface: ThreadPool
线程池

Specified by:
getExecutor in interface ThreadPool
Parameters:
url - 线程参数
Returns:
线程池


Copyright © 2012–2017 Alibaba. All rights reserved.