Example usage for org.apache.commons.pool MethodCallPoolableObjectFactory reset

List of usage examples for org.apache.commons.pool MethodCallPoolableObjectFactory reset

Introduction

In this page you can find the example usage for org.apache.commons.pool MethodCallPoolableObjectFactory reset.

Prototype

public void reset() 

Source Link

Usage

From source file:edu.illinois.enforcemop.examples.apache.pool.TestObjectPool.java

private static void reset(final ObjectPool pool, final MethodCallPoolableObjectFactory factory,
        final List expectedMethods) throws Exception {
    pool.clear();//from  w w w.  j a v a  2s.  c o  m
    clear(factory, expectedMethods);
    factory.reset();
}