Skip to content

Commit

Permalink
add queueRemainingSize at the beginning (sofastack#1293)
Browse files Browse the repository at this point in the history
Co-authored-by: liujianjun.ljj <liujianjun.ljj@antgroup.com>
  • Loading branch information
EvenLjj and liujianjun.ljj committed Mar 4, 2024
1 parent 447b919 commit 0c03dfe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public void start() {
StringBuilder sb = new StringBuilder();
sb.append("coreSize:" + threadPoolExecutor.getCorePoolSize() + ",");
sb.append("maxPoolSize:" + threadPoolExecutor.getMaximumPoolSize() + ",");
sb.append("queueRemainingSize:"
+ threadPoolExecutor.getQueue().remainingCapacity() + ",");
sb.append("keepAliveTime:"
+ threadPoolExecutor.getKeepAliveTime(TimeUnit.MILLISECONDS)
+ "\n");
Expand Down

0 comments on commit 0c03dfe

Please sign in to comment.