Example usage for org.apache.commons.pool2.impl EvictionPolicy interface-usage

List of usage examples for org.apache.commons.pool2.impl EvictionPolicy interface-usage

Introduction

In this page you can find the example usage for org.apache.commons.pool2.impl EvictionPolicy interface-usage.

Usage

From source file org.springframework.ldap.pool2.DummyEvictionPolicy.java

/**
 * A dummy {@link EvictionPolicy} implementation to test pool2 config.
 *
 * @author Anindya Chatterjee
 * */
public class DummyEvictionPolicy implements EvictionPolicy {

From source file org.lib4j.dbcp.MockEvictionPolicy.java

public class MockEvictionPolicy<T> implements EvictionPolicy<T> {
    @Override
    public boolean evict(final EvictionConfig config, final PooledObject<T> underTest, final int idleCount) {
        return false;
    }
}