public interface ThreadPoolCheckAlarm
extends org.springframework.boot.CommandLineRunner
Dynamic thread pool check and send logic wait for refactoring, Try not to rely on this component for custom extensions, because it is undefined.
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncSendExecuteTimeOutAlarm(String threadPoolId,
long executeTime,
long executeTimeOut,
ThreadPoolExecutor threadPoolExecutor)
Async send execute time-out alarm.
|
void |
asyncSendRejectedAlarm(String threadPoolId)
Async send rejected alarm.
|
void |
checkPoolActivityAlarm(String threadPoolId,
ThreadPoolExecutor threadPoolExecutor)
Check pool activity alarm.
|
void |
checkPoolCapacityAlarm(String threadPoolId,
ThreadPoolExecutor threadPoolExecutor)
Check pool capacity alarm.
|
void checkPoolCapacityAlarm(String threadPoolId, ThreadPoolExecutor threadPoolExecutor)
threadPoolId - thread-pool idthreadPoolExecutor - thread-pool executorvoid checkPoolActivityAlarm(String threadPoolId, ThreadPoolExecutor threadPoolExecutor)
threadPoolId - thread-pool idthreadPoolExecutor - thread-pool executorvoid asyncSendRejectedAlarm(String threadPoolId)
threadPoolId - thread-pool idvoid asyncSendExecuteTimeOutAlarm(String threadPoolId, long executeTime, long executeTimeOut, ThreadPoolExecutor threadPoolExecutor)
threadPoolId - thread-pool idexecuteTime - execute timeexecuteTimeOut - execute time-outthreadPoolExecutor - thread-pool executorCopyright © 2022. All rights reserved.