Class DefaultEvictionPolicy<T>

    • Constructor Detail

      • DefaultEvictionPolicy

        public DefaultEvictionPolicy()
    • Method Detail

      • evict

        public boolean evict​(EvictionConfig config,
                             PooledObject<T> underTest,
                             int idleCount)
        Description copied from interface: EvictionPolicy
        This method is called to test if an idle object in the pool should be evicted or not.
        Specified by:
        evict in interface EvictionPolicy<T>
        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
        true if the object should be evicted, otherwise false