public void awaitShutdown ( ) throws InterruptedException { synchronized ( lock ) { if ( ! shutdown ) { throw UndertowMessages . MESSAGES . handlerNotShutdown ( ) ; } while ( activeRequestsUpdater . get ( this ) > 0 ) { lock . wait ( ) ; } } }
Waits for the handler to shutdown .