Code example for PooledConnection

Methods: removeConnectionEventListener

0
semaphore.release();
recycledConnections.add(pconn);
assertInnerState(); } 
 
private synchronized void disposeConnection (PooledConnection pconn) {
pconn.removeConnectionEventListener(poolConnectionEventListener);
if (!recycledConnections.remove(pconn)) {
   // If the PooledConnection is not in the recycledConnections list, 
   // we assume that the connection was active. 
   if (activeConnections <= 0) {
      throw new AssertionError(); }
   activeConnections--;
   semaphore.release(); }
closeConnectionAndIgnoreException(pconn);
assertInnerState(); } 
 
private void closeConnectionAndIgnoreException (PooledConnection pconn) {
try { 
   pconn.close(); }
 catch (SQLException e) {