public boolean awaitTermination ( long timeout ) throws InterruptedException { final String methodName = "awaitTermination" ; logger . entry ( methodName ) ; final boolean terminated ; if ( bootstrap != null ) { terminated = bootstrap . group ( ) . awaitTermination ( timeout , TimeUnit . SECONDS ) ; } else { terminated = true ; } logger . exit ( methodName , terminated ) ; return terminated ; }
Waits for the underlying network service to terminate .