private void destroy ( ) { if ( log . isLoggable ( Level . FINEST ) ) { log . finest ( this + " destroying connection" ) ; } try { _socket . forceShutdown ( ) ; } catch ( Throwable e ) { } try { closeConnection ( ) ; } catch ( Throwable e ) { log . log ( Level . FINER , e . toString ( ) , e ) ; } // XXX: _port . removeConnection ( this ) ; }
Destroy kills the connection and drops it from the connection pool .