Package org.apache.commons.pool

Examples of org.apache.commons.pool.WaiterFactory


    /**
     * Test case for POOL-180.
     */
    public void testMaxActivePerKeyExceeded() {
        WaiterFactory factory = new WaiterFactory(0, 20, 0, 0, 0, 0, 8, 5, 0);
        pool = new GenericKeyedObjectPool(factory);
        pool.setMaxActive(5);
        pool.setMaxTotal(8);
        pool.setTestOnBorrow(true);
        pool.setMaxIdle(5);
View Full Code Here


    /**
     * Test case for POOL-180.
     */
    public void testMaxActivePerKeyExceeded() {
        WaiterFactory factory = new WaiterFactory(0, 20, 0, 0, 0, 0, 8, 5, 0);
        pool = new GenericKeyedObjectPool(factory);
        pool.setMaxActive(5);
        pool.setMaxTotal(8);
        pool.setTestOnBorrow(true);
        pool.setMaxIdle(5);
View Full Code Here

TOP

Related Classes of org.apache.commons.pool.WaiterFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.