BaseGenericObjectPool.getNumTestsPerEvictionRun

Returns the maximum number of objects to examine during each run (if any) of the idle object evictor thread. When positive, the number of tests performed for a run will be the minimum of the configured value and the number of idle instances in the pool. When negative, the number of tests performed will be <code>ceil({@link #getNumIdle}/ abs({@link #getNumTestsPerEvictionRun}))</code> which means that when the value is <code>-n</code> roughly one nth of the idle objects will be tested per run.

@return max number of objects to examine during each evictor run

@see #setNumTestsPerEvictionRun @see #setTimeBetweenEvictionRunsMillis

class BaseGenericObjectPool
int
getNumTestsPerEvictionRun
()

Meta