public boolean offer(PooledConnection pooledConnection){
  acquiredConnections.remove(pooledConnection);
  boolean offer=queue.offer(pooledConnection);
  if (!offer) {
    pooledConnection.dispose();
  }
  if (isTerminating.get()) {
    PooledConnection poll=queue.poll();
    if (poll != null) {
      poll.dispose();
    }
  }
  return offer;
}

public boolean offer ( PooledConnection pooledConnection ) { acquiredConnections . remove ( pooledConnection ) ; boolean offer = queue . offer ( pooledConnection ) ; if ( ! offer ) { pooledConnection . dispose ( ) ; } if ( isTerminating . get ( ) ) { PooledConnection poll = queue . poll ( ) ; if ( poll != null ) { poll . dispose ( ) ; } } return offer ; }
offer a connections back to the queue
