pool.push(broker); if(pool.size() == brokers && (System.currentTimeMillis() - lastRequest) > idleTime) sync(broker); lastRequest = System.currentTimeMillis(); this.notifyAll();
synchronized(this) { pool.push(broker); if(syncRequired && pool.size() == brokers) { sync(broker); syncRequired = false; } this.notifyAll(); }
	public synchronized void release(DBBroker broker) {		if (broker == null)			return;		pool.push(broker);		if(pool.size() == brokers && 			(System.currentTimeMillis() - lastRequest) > idleTime)			sync(broker);        lastRequest = System.currentTimeMillis();		this.notifyAll();	}