This class is not synchronized.
979899100101102103104105106
/** * Creates a new connection pool. */ protected AbstractConnPool() { issuedConnections = new HashSet<BasicPoolEntryRef>(); idleConnHandler = new IdleConnectionHandler(); boolean fair = false; //@@@ check parameters to decide poolLock = new ReentrantLock(fair); }
96979899100101102103
*/ protected AbstractConnPool() { super(); this.log = LogFactory.getLog(getClass()); this.leasedConnections = new HashSet<BasicPoolEntry>(); this.idleConnHandler = new IdleConnectionHandler(); this.poolLock = new ReentrantLock(); }
8889909192939495
126127128129130131132133134135136
protected AbstractConnPool(ClientConnectionManager mgr) { params = mgr.getParams(); issuedConnections = new HashSet(); idleConnHandler = new IdleConnectionHandler(); boolean conngc = true; //@@@ check parameters to decide if (conngc) { refQueue = new ReferenceQueue(); refWorker = new RefQueueWorker(refQueue, this);
143144145146147148149150151152153
protected AbstractConnPool(ClientConnectionManager mgr) { params = mgr.getParams(); issuedConnections = new HashSet<BasicPoolEntryRef>(); idleConnHandler = new IdleConnectionHandler(); boolean fair = false; //@@@ check parameters to decide poolLock = new ReentrantLock(fair); connManager = new ConnMgrRef(mgr, null);