Code example for SocketChannel

Methods: close

0
    public void createConnection(SocketChannel channel) {
        try { 
            if (log.isTraceEnabled()) {
                log.trace("Immediately closing connection: " + channel);
            } 
            channel.close();
        } catch (Exception ex) {
        } 
    } 
 
}