HBASE-8003 Threads#getBoundedCachedThreadPool harcodes the time unit to seconds

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1452912 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
nkeywal 2013-03-05 17:31:51 +00:00
parent 13f2700645
commit fc6f7a031b
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ public class Threads {
ThreadFactory threadFactory) {
ThreadPoolExecutor boundedCachedThreadPool =
new ThreadPoolExecutor(maxCachedThread, maxCachedThread, timeout,
TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), threadFactory);
unit, new LinkedBlockingQueue<Runnable>(), threadFactory);
// allow the core pool threads timeout and terminate
boundedCachedThreadPool.allowCoreThreadTimeOut(true);
return boundedCachedThreadPool;