EvictionPolicy used by the pools.
Objects will be evicted if the following conditions are met:
GenericObjectPool#getMinEvictableIdleDuration() /
GenericKeyedObjectPool#getMinEvictableIdleDuration()GenericObjectPool#getMinIdle() /
GenericKeyedObjectPoolConfig#getMinIdlePerKey() idle objects in
the pool and the object has been idle for longer than
GenericObjectPool#getSoftMinEvictableIdleDuration() /
GenericKeyedObjectPool#getSoftMinEvictableIdleDuration()
This class is immutable and thread-safe.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | evict(final EvictionConfig config, final PooledObject<T> underTest, final int idleCount)
Implements org. Tests if an idle object in the pool should be evicted or not. |
| DefaultEvictionPolicy | back to summary |
|---|---|
| public DefaultEvictionPolicy() Constructs a new instance. | |
| evict | back to summary |
|---|---|
| public boolean evict(final EvictionConfig config, final PooledObject<T> underTest, final int idleCount) Implements org. Doc from org. Tests if an idle object in the pool should be evicted or not.
| |