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

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

Introduction

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

Prototype

public StackObjectPool() 

Source Link

Usage

From source file:jp.co.acroquest.endosnipe.data.db.ConnectionManager.java

/**
 * ???????//  ww  w  . j a v a 2 s  .c o  m
 * @param key 
 * @return ?
 */
public ObjectPool createNewConnectionPool(String key) {
    ObjectPool connectionPool = this.connectionPoolMap_.get(key);
    if (connectionPool == null) {
        connectionPool = new StackObjectPool();
        this.connectionPoolMap_.put(key, connectionPool);
    }
    return connectionPool;
}