Merge pull request #131 from Memorydoc/develop

Rejectedproxy update
pull/133/head
龙台 Long Tai 4 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 { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
rejectCount.incrementAndGet(); rejectCount.incrementAndGet();
ThreadPoolNotifyAlarmHandler alarmHandler = ApplicationContextHolder.getBean(ThreadPoolNotifyAlarmHandler.class); if (ApplicationContextHolder.getInstance() != null) {
alarmHandler.checkPoolRejectedAlarm(threadPoolId); ThreadPoolNotifyAlarmHandler alarmHandler = ApplicationContextHolder.getBean(ThreadPoolNotifyAlarmHandler.class);
if (alarmHandler != null) {
alarmHandler.checkPoolRejectedAlarm(threadPoolId);
}
}
try { try {
return method.invoke(target, args); return method.invoke(target, args);

Loading…
Cancel
Save