protected void enterAsyncTask() { asyncCounter.increase(); }
protected void exitAsyncTask() { asyncCounter.decrease(); }
/** * Wait until all daemon threads running in this engine have terminated. * * @throws InterruptedException if the current thread has been interrupted */ public void waitForAsyncTasks() throws InterruptedException { asyncCounter.waitTillDone(); }