Returns whether objects sitting idle in the pool will be validated by the
idle object evictor (if any - see
{@link #setTimeBetweenEvictionRunsMillis(long)}). 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. Note that setting this property has no effect
unless the idle object evictor is enabled by setting
<code>timeBetweenEvictionRunsMillis</code> to a positive value.
@param testWhileIdle
<code>true</code> so objects will be validated by the evictor
Returns whether objects sitting idle in the pool will be validated by the idle object evictor (if any - see {@link #setTimeBetweenEvictionRunsMillis(long)}). 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. Note that setting this property has no effect unless the idle object evictor is enabled by setting <code>timeBetweenEvictionRunsMillis</code> to a positive value.
@param testWhileIdle <code>true</code> so objects will be validated by the evictor
@see #getTestWhileIdle @see #setTimeBetweenEvictionRunsMillis