public class ThreadPoolMonitorWrapper extends Object
ThreadPoolExecutor| Constructor and Description |
|---|
ThreadPoolMonitorWrapper(ThreadPoolExecutor threadPoolExecutor,
ThreadPoolConfig threadPoolConfig,
ThreadPoolStatistics threadPoolStatistics) |
| Modifier and Type | Method and Description |
|---|---|
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 © 2024. All rights reserved.