EvictionPolicy

To provide a custom eviction policy (i.e. something other than {@link DefaultEvictionPolicy} for a pool, users must provide an implementation of this interface that provides the required eviction policy.

@param <T> the type of objects in the pool

Members

Functions

evict
bool evict(EvictionConfig config, IPooledObject underTest, int idleCount)

This method is called to test if an idle object in the pool should be evicted or not.

Meta