public class ThreadPoolMonitorWrapper extends Object
ThreadPoolExecutor| 构造器和说明 |
|---|
ThreadPoolMonitorWrapper(ThreadPoolExecutor threadPoolExecutor,
ThreadPoolConfig threadPoolConfig,
ThreadPoolStatistics threadPoolStatistics) |
| 限定符和类型 | 方法和说明 |
|---|---|
ThreadPoolConfig |
getThreadPoolConfig()
Return the
ThreadPoolConfig |
ThreadPoolExecutor |
getThreadPoolExecutor()
Return the origin
ThreadPoolExecutor |
boolean |
isStarted()
Return whether the monitor task is started
|
void |
restartMonitor()
Restart to monitor the
ThreadPoolExecutor |
void |
startMonitor()
Start to monitor the
ThreadPoolExecutor |
void |
stopMonitor()
Stop to monitor the
ThreadPoolExecutor |
public ThreadPoolMonitorWrapper(ThreadPoolExecutor threadPoolExecutor, ThreadPoolConfig threadPoolConfig, ThreadPoolStatistics threadPoolStatistics)
public void startMonitor()
ThreadPoolExecutorpublic void stopMonitor()
ThreadPoolExecutorpublic void restartMonitor()
ThreadPoolExecutorpublic ThreadPoolExecutor getThreadPoolExecutor()
ThreadPoolExecutorThreadPoolExecutorpublic ThreadPoolConfig getThreadPoolConfig()
ThreadPoolConfigThreadPoolConfigpublic boolean isStarted()
Copyright © 2021. All rights reserved.