public void close ( ) { refuseNewRequests . set ( true ) ; channel . close ( ) . awaitUninterruptibly ( ) ; channel . eventLoop ( ) . shutdownGracefully ( ) . awaitUninterruptibly ( ) ; }
Shuts down this client and releases the underlying associated resources .