Example usage for org.apache.commons.pool2 PooledObject use

List of usage examples for org.apache.commons.pool2 PooledObject use

Introduction

In this page you can find the example usage for org.apache.commons.pool2 PooledObject use.

Prototype

void use();

Source Link

Document

Record the current stack trace as the last time the object was used.

Usage

From source file:JDBCPool.dbcp.demo.sourcecode.GenericObjectPool.java

@Override
public void use(T pooledObject) {
    AbandonedConfig ac = this.abandonedConfig;
    if (ac != null && ac.getUseUsageTracking()) {
        PooledObject<T> wrapper = allObjects.get(new IdentityWrapper<T>(pooledObject));
        wrapper.use();
    }//from w  w w  . jav  a2  s.com
}