DefaultEvictionPolicy for a pool, users must provide an implementation of
this interface that provides the required eviction policy.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the object should be evicted, otherwise
falseThe pool configuration settings related to eviction config, PooledObject<T> The pooled object being tested for eviction underTest, int The current number of idle objects in the pool including
the object under test idleCount)Tests if an idle object in the pool should be evicted or not. |
| evict | back to summary |
|---|---|
| public boolean evict(EvictionConfig config, PooledObject<T> underTest, int idleCount) Tests if an idle object in the pool should be evicted or not.
| |