@ Override public void waitForShutdown ( Object timeout ) throws InterruptedException , IllegalStateException , TimeoutException { if ( ! _shutdown ) throw new IllegalStateException ( "call shutdown first" ) ; pendingCallsCount . waitForCounter ( timeout ) ; }
Waits for shutdown to be completed . After calling shutdown there may still be some pending work that needs to be accomplised . This method will block until it is done but no longer than the timeout .