dionusos commented on a change in pull request #64: URL: https://github.com/apache/oozie/pull/64#discussion_r783243124
########## File path: core/src/main/java/org/apache/oozie/service/CallableQueueService.java ########## @@ -872,4 +878,36 @@ public void insertCallableIntoInterruptMap(XCallable<?> callable) { public Set<String> getInterruptTypes() { return interruptTypes; } + + public synchronized long getThreadActiveCount() { + return executor.getActiveCount(); + } + + public long getQueueThreadsNumber() { + return queueThreadsNumber; + } + + public <T> Future<T> submit(CallableWrapper<T> task) throws InterruptedException { + return executor.submit((Callable<T>) task); + } + + // refer to AbstractExecutorService.invokeAll + public <T> void blockingWait(List<Future<T>> futures) throws InterruptedException { + try { + for(Future f : futures) { Review comment: Use Future<T> future: please. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@oozie.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org