Examples of FixedSizePool


Examples of org.apache.excalibur.mpool.FixedSizePool

        boolean maxStrict = true;
        boolean blocking = false;
        long blockTimeout = 0;
        long trimInterval = 0;

        FixedSizePool poolA = new FixedSizePool( factory, max );

        ResourceLimitingPool poolB = new ResourceLimitingPool( factory, max, maxStrict, blocking, blockTimeout, trimInterval );
        poolB.enableLogging( m_poolLogger );

        generalTest( name, poolA, poolB, 100, factory );
View Full Code Here

Examples of org.apache.excalibur.mpool.FixedSizePool

        Class poolableClass = SmallPoolable.class;
        ClassInstanceObjectFactory factory = new ClassInstanceObjectFactory( poolableClass, m_poolLogger );
        int max = 100;
        long blockTimeout = 1;

        FixedSizePool poolA = new FixedSizePool( factory, max );
        BlockingFixedSizePool poolB = new BlockingFixedSizePool( factory, max, blockTimeout );
        poolB.initialize();

        generalTest( name, poolA, poolB, 100, factory );
    }
View Full Code Here

Examples of org.apache.excalibur.mpool.FixedSizePool

        Class poolableClass = MediumPoolable.class;
        ClassInstanceObjectFactory factory = new ClassInstanceObjectFactory( poolableClass, m_poolLogger );
        int max = 100;
        long blockTimeout = 1;

        FixedSizePool poolA = new FixedSizePool( factory, max );
        BlockingFixedSizePool poolB = new BlockingFixedSizePool( factory, max, blockTimeout );
        poolB.initialize();

        generalTest( name, poolA, poolB, 100, factory );
    }
View Full Code Here

Examples of org.apache.excalibur.mpool.FixedSizePool

        Class poolableClass = LargePoolable.class;
        ClassInstanceObjectFactory factory = new ClassInstanceObjectFactory( poolableClass, m_poolLogger );
        int max = 100;
        long blockTimeout = 1;

        FixedSizePool poolA = new FixedSizePool( factory, max );
        BlockingFixedSizePool poolB = new BlockingFixedSizePool( factory, max, blockTimeout );
        poolB.initialize();

        generalTest( name, poolA, poolB, 100, factory );
    }
View Full Code Here

Examples of org.apache.excalibur.mpool.FixedSizePool

        boolean maxStrict = true;
        boolean blocking = false;
        long blockTimeout = 0;
        long trimInterval = 0;

        FixedSizePool poolA = new FixedSizePool( factory, max );

        ResourceLimitingPool poolB = new ResourceLimitingPool( factory, max, maxStrict, blocking, blockTimeout, trimInterval );
        poolB.enableLogging( m_poolLogger );

        generalTest( name, poolA, poolB, 100, factory );
View Full Code Here

Examples of org.apache.excalibur.mpool.FixedSizePool

        Class poolableClass = SmallPoolable.class;
        ClassInstanceObjectFactory factory = new ClassInstanceObjectFactory( poolableClass, m_poolLogger );
        int max = 100;

        FixedSizePool poolA = new FixedSizePool( factory, max );

        VariableSizePool poolB = new VariableSizePool( factory, max );

        generalTest( name, poolA, poolB, 100, factory );
    }
View Full Code Here

Examples of org.apache.excalibur.mpool.FixedSizePool

        Class poolableClass = MediumPoolable.class;
        ClassInstanceObjectFactory factory = new ClassInstanceObjectFactory( poolableClass, m_poolLogger );
        int max = 100;

        FixedSizePool poolA = new FixedSizePool( factory, max );

        VariableSizePool poolB = new VariableSizePool( factory, max );

        generalTest( name, poolA, poolB, 100, factory );
    }
View Full Code Here

Examples of org.apache.excalibur.mpool.FixedSizePool

        Class poolableClass = LargePoolable.class;
        ClassInstanceObjectFactory factory = new ClassInstanceObjectFactory( poolableClass, m_poolLogger );
        int max = 100;

        FixedSizePool poolA = new FixedSizePool( factory, max );

        VariableSizePool poolB = new VariableSizePool( factory, max );

        generalTest( name, poolA, poolB, 100, factory );
    }
View Full Code Here

Examples of org.apache.excalibur.mpool.FixedSizePool

        boolean maxStrict = true;
        boolean blocking = false;
        long blockTimeout = 0;
        long trimInterval = 0;

        FixedSizePool poolA = new FixedSizePool( factory, max );

        ResourceLimitingPool poolB = new ResourceLimitingPool( factory, max, maxStrict, blocking, blockTimeout, trimInterval );
        poolB.enableLogging( m_poolLogger );

        generalTest( name, poolA, poolB, 100, factory );
View Full Code Here

Examples of org.apache.excalibur.mpool.FixedSizePool

        Class poolableClass = SmallPoolable.class;
        ClassInstanceObjectFactory factory = new ClassInstanceObjectFactory( poolableClass, m_poolLogger );
        int max = 100;
        long blockTimeout = 1;

        FixedSizePool poolA = new FixedSizePool( factory, max );
        BlockingFixedSizePool poolB = new BlockingFixedSizePool( factory, max, blockTimeout );
        poolB.initialize();

        generalTest( name, poolA, poolB, 100, factory );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.