com.alibaba.dubbo.common.threadpool.support.cached
Class CachedThreadPool
java.lang.Object
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()
CachedThreadPool
public CachedThreadPool()
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.