T - the type of objects in the poolDefaultEvictionPolicypublic interface EvictionPolicy<T>
DefaultEvictionPolicy for a pool, users must provide an implementation of
this interface that provides the required eviction policy.| Modifier and Type | Method | Description |
|---|---|---|
boolean |
evict(EvictionConfig config,
PooledObject<T> underTest,
int idleCount) |
This method is called to test if an idle object in the pool should be
evicted or not.
|
boolean evict(EvictionConfig config, PooledObject<T> underTest, int idleCount)
config - The pool configuration settings related to evictionunderTest - The pooled object being tested for evictionidleCount - The current number of idle objects in the pool including
the object under testtrue if the object should be evicted, otherwise
falseCopyright © 2001-2014 Apache Software Foundation. Documenation generated March 25 2019.