public void releaseConnection ( IPhynixxManagedConnection < C > connection ) { if ( connection == null || ! connection . hasCoreConnection ( ) ) { return ; } try { //StringBuilder builder= new StringBuilder(Thread.currentThread().getId()+".releaseConnection starting from "+this.genericObjectPool.getNumIdle()+"/"+this.genericObjectPool.getNumActive()); this . genericObjectPool . returnObject ( connection ) ; // LOG.debug(builder.append(" ... to "+Thread.currentThread().getId()+" "+this.genericObjectPool.getNumIdle()+"/"+this.genericObjectPool.getNumActive()).toString()); } catch ( Exception e ) { throw new DelegatedRuntimeException ( e ) ; } if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Proxy " + connection + " returned to Pool" ) ; } }
closes the connection an releases it to the pool