Merge pull request #131 from Memorydoc/develop

Rejectedproxy update
pull/133/head
龙台 Long Tai 3 years ago committed by GitHub
commit da7c6225f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,8 +28,12 @@ public class RejectedProxyInvocationHandler implements InvocationHandler {
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
rejectCount.incrementAndGet();
ThreadPoolNotifyAlarmHandler alarmHandler = ApplicationContextHolder.getBean(ThreadPoolNotifyAlarmHandler.class);
alarmHandler.checkPoolRejectedAlarm(threadPoolId);
if (ApplicationContextHolder.getInstance() != null) {
ThreadPoolNotifyAlarmHandler alarmHandler = ApplicationContextHolder.getBean(ThreadPoolNotifyAlarmHandler.class);
if (alarmHandler != null) {
alarmHandler.checkPoolRejectedAlarm(threadPoolId);
}
}
try {
return method.invoke(target, args);

Loading…
Cancel
Save