Update ManagedExecutorServiceImpl.java

Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/70bf6fcf
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/70bf6fcf
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/70bf6fcf

Branch: refs/heads/master
Commit: 70bf6fcfbd4191bde67fd028385df12943ff370d
Parents: 5b6dfb7
Author: Jonathan S. Fisher <exabr...@gmail.com>
Authored: Tue Sep 25 13:29:37 2018 -0500
Committer: Jonathan S. Fisher <exabr...@gmail.com>
Committed: Sat Nov 3 14:24:12 2018 -0500

----------------------------------------------------------------------
 .../apache/openejb/threads/impl/ManagedExecutorServiceImpl.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/70bf6fcf/container/openejb-core/src/main/java/org/apache/openejb/threads/impl/ManagedExecutorServiceImpl.java
----------------------------------------------------------------------
diff --git 
a/container/openejb-core/src/main/java/org/apache/openejb/threads/impl/ManagedExecutorServiceImpl.java
 
b/container/openejb-core/src/main/java/org/apache/openejb/threads/impl/ManagedExecutorServiceImpl.java
index 59831b4..bea9d1d 100644
--- 
a/container/openejb-core/src/main/java/org/apache/openejb/threads/impl/ManagedExecutorServiceImpl.java
+++ 
b/container/openejb-core/src/main/java/org/apache/openejb/threads/impl/ManagedExecutorServiceImpl.java
@@ -101,9 +101,9 @@ public class ManagedExecutorServiceImpl extends 
AbstractExecutorService implemen
         }
     }
 
-    public Long getTaskCount() {
+    public Long getQueueSize() {
         if (delegate instanceof ThreadPoolExecutor) {
-            return ((ThreadPoolExecutor) delegate).getTaskCount();
+            return ((ThreadPoolExecutor) delegate).getQueue().size();
         } else {
             return null;
         }

Reply via email to