Merge pull request #359 from mabaiwan/develop

Tomcat thread pool details return reject policy name
pull/365/head
小马哥 2 years ago committed by GitHub
commit fafd1876f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -152,6 +152,9 @@ public class TomcatWebThreadPoolHandler extends AbstractWebThreadPoolService {
runStateInfo.setCompletedTaskCount(completedTaskCount);
runStateInfo.setClientLastRefreshTime(DateUtil.formatDateTime(new Date()));
runStateInfo.setTimestamp(System.currentTimeMillis());
String rejectedExecutionHandlerName = executor instanceof ThreadPoolExecutor ? ((ThreadPoolExecutor) executor).getRejectedExecutionHandler().getClass().getSimpleName()
: tomcatThreadPoolExecutor.getRejectedExecutionHandler().getClass().getSimpleName();
runStateInfo.setRejectedName(rejectedExecutionHandlerName);
return webThreadPoolRunStateHandler.supplement(runStateInfo);
}

Loading…
Cancel
Save