public void shutdown() throws IOException {
        try {
            selector.close();
        } catch (IOException e) {
            Logger.error("Close nio event selector fail.", e);
            throw e;
        }
    }
public void shutdown() throws IOException {
        try {
            selector.close();
        } catch (IOException e) {
            Logger.error("Close nio event selector fail.", e);
            throw e;
        }
    }
public void shutdown ( ) throws IOException { try { selector . close ( ) ; } catch ( IOException e ) { Logger . error ( "Close nio event selector fail." , e ) ; throw e ; } }
Shutdown a selector
@throws IOException
Shutdown a selector