tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r645428 - /tomcat/trunk/java/org/apache/catalina/core/StandardThreadExecutor.java
Date Mon, 07 Apr 2008 09:29:41 GMT
Author: jfclere
Date: Mon Apr  7 02:29:41 2008
New Revision: 645428

URL: http://svn.apache.org/viewvc?rev=645428&view=rev
Log:
Submitted by Ruediger Pluem. PR#44595

Modified:
    tomcat/trunk/java/org/apache/catalina/core/StandardThreadExecutor.java

Modified: tomcat/trunk/java/org/apache/catalina/core/StandardThreadExecutor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardThreadExecutor.java?rev=645428&r1=645427&r2=645428&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardThreadExecutor.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardThreadExecutor.java Mon Apr  7 02:29:41
2008
@@ -193,6 +193,10 @@
         return (executor != null) ? executor.getPoolSize() : 0;
     }
 
+    public int getQueueSize() {
+        return (executor != null) ? executor.getQueue().size() : -1;
+    }
+
     // ---------------------------------------------- TaskQueue Inner Class
     class TaskQueue extends LinkedBlockingQueue<Runnable> {
         ThreadPoolExecutor parent = null;
@@ -254,4 +258,4 @@
     }
 
 
-}
\ No newline at end of file
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message