| 构造器和说明 |
|---|
ThreadPoolNotifyAlarmHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
asyncSendExecuteTimeOutAlarm(String threadPoolId,
long executeTime,
long executeTimeOut,
ThreadPoolExecutor threadPoolExecutor)
Async send execute time out alarm.
|
AlarmNotifyRequest |
buildAlarmNotifyReq(ThreadPoolExecutor threadPoolExecutor)
Build alarm notify req.
|
void |
checkPoolActivityAlarm(String threadPoolId,
ThreadPoolExecutor threadPoolExecutor)
Check thread pool activity alarm.
|
void |
checkPoolCapacityAlarm(String threadPoolId,
ThreadPoolExecutor threadPoolExecutor)
Check thread pool capacity alarm.
|
void |
checkPoolRejectedAlarm(String threadPoolId)
Check pool rejected alarm.
|
void |
checkPoolRejectedAlarm(String threadPoolId,
ThreadPoolExecutor threadPoolExecutor)
Check pool rejected alarm.
|
void |
run() |
void |
run(String... args) |
void |
sendPoolConfigChange(ChangeParameterNotifyRequest request)
Send pool config change.
|
public void run(String... args) throws Exception
run 在接口中 org.springframework.boot.CommandLineRunnerExceptionpublic void checkPoolCapacityAlarm(String threadPoolId, ThreadPoolExecutor threadPoolExecutor)
threadPoolId - threadPoolExecutor - public void checkPoolActivityAlarm(String threadPoolId, ThreadPoolExecutor threadPoolExecutor)
threadPoolId - threadPoolExecutor - public void checkPoolRejectedAlarm(String threadPoolId)
threadPoolId - public void checkPoolRejectedAlarm(String threadPoolId, ThreadPoolExecutor threadPoolExecutor)
threadPoolId - threadPoolExecutor - public void asyncSendExecuteTimeOutAlarm(String threadPoolId, long executeTime, long executeTimeOut, ThreadPoolExecutor threadPoolExecutor)
threadPoolId - executeTime - executeTimeOut - threadPoolExecutor - public void sendPoolConfigChange(ChangeParameterNotifyRequest request)
request - public AlarmNotifyRequest buildAlarmNotifyReq(ThreadPoolExecutor threadPoolExecutor)
threadPoolExecutor - Copyright © 2022. All rights reserved.