public class ThreadCache extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static ThreadCache |
getInstance() |
ThreadPoolExecutor |
getPool(String poolName) |
List<ThreadPoolExecutor> |
getPoolList() |
Thread |
getThread(String threadName) |
List<Thread> |
getThreadList() |
List<Thread> |
getThreadList(String poolName) |
void |
putPool(String poolName,
ThreadPoolExecutor pool) |
void |
putThread(String poolName,
String threadName,
Thread thread) |
void |
removeAllThread() |
void |
removePoolThread(String poolName) |
void |
removeThread(String threadName) |
public static final ThreadCache getInstance()
public final void putPool(String poolName, ThreadPoolExecutor pool)
public final ThreadPoolExecutor getPool(String poolName)
public final List<ThreadPoolExecutor> getPoolList()
public void removeAllThread()
public void removePoolThread(String poolName)
public void removeThread(String threadName)
Copyright © 2021. All rights reserved.