BaseGenericObjectPool.setTestOnBorrow

Sets whether objects borrowed from the pool will be validated before being returned from the <code>borrowObject()</code> method. Validation is performed by the <code>validateObject()</code> method of the factory associated with the pool. If the object fails to validate, it will be removed from the pool and destroyed, and a new attempt will be made to borrow an object from the pool.

@param testOnBorrow <code>true</code> if objects should be validated before being returned from the <code>borrowObject()</code> method

@see #getTestOnBorrow

class BaseGenericObjectPool
void
setTestOnBorrow

Meta