Example usage for org.apache.commons.pool.impl StackObjectPool clear

List of usage examples for org.apache.commons.pool.impl StackObjectPool clear

Introduction

In this page you can find the example usage for org.apache.commons.pool.impl StackObjectPool clear.

Prototype

public synchronized void clear() 

Source Link

Usage

From source file:org.alinous.plugin.derby.DerbyDataSource.java

public void dispose() {
    StackObjectPool pool = this.connectionPool;
    this.connectionPool = null;

    pool.clear();

    try {//from   ww  w .ja v  a  2s  . co m
        pool.close();
    } catch (Exception e) {
        e.printStackTrace();
    }
}