类 ThreadCache
- java.lang.Object
-
- network.nerve.core.thread.commom.ThreadCache
-
public class ThreadCache extends Object
- 作者:
- tag
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static ThreadCachegetInstance()ThreadPoolExecutorgetPool(String poolName)List<ThreadPoolExecutor>getPoolList()ThreadgetThread(String threadName)List<Thread>getThreadList()List<Thread>getThreadList(String poolName)voidputPool(String poolName, ThreadPoolExecutor pool)voidputThread(String poolName, String threadName, Thread thread)voidremoveAllThread()voidremovePoolThread(String poolName)voidremoveThread(String threadName)
-
-
-
方法详细资料
-
getInstance
public static final ThreadCache getInstance()
-
putPool
public final void putPool(String poolName, ThreadPoolExecutor pool)
-
getPool
public final ThreadPoolExecutor getPool(String poolName)
-
getPoolList
public final List<ThreadPoolExecutor> getPoolList()
-
removeAllThread
public void removeAllThread()
-
removePoolThread
public void removePoolThread(String poolName)
-
removeThread
public void removeThread(String threadName)
-
-