T- the type of objects in the pool
public interface EvictionPolicy<T>
DefaultEvictionPolicyfor a pool, users must provide an implementation of this interface that provides the required eviction policy.
boolean evict(EvictionConfig config, PooledObject<T> underTest, int idleCount)
config- The pool configuration settings related to eviction
underTest- The pooled object being tested for eviction
idleCount- The current number of idle objects in the pool including the object under test
trueif the object should be evicted, otherwise
Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.