Code example for PooledConnection

Methods: removeConnectionEventListener

0
        { 
            System.err
                .println("CLOSING DOWN CONNECTION DUE TO INTERNAL ERROR");
            //remove this from the listener list because we are no more  
            //interested in errors since we are about to close this connection 
            pc.removeConnectionEventListener(this);
        } 
        catch (Exception ignore) 
        { 
            // ignore 
        } 
 
        Object key = pcKeyMap.get(pc);
        if (key == null) 
        { 
            throw new IllegalStateException(NO_KEY_MESSAGE);
        }             
        destroyObject(key, pc);
    } 
 
Connect your IDE to all the code out there  Get Codota for Java