import org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;
import java.util.concurrent.atomic.AtomicBoolean;
-import java.util.concurrent.atomic.AtomicInteger;
/**
* Represents a pooled connection
* Logger
*/
private static final Log log = LogFactory.getLog(PooledConnection.class);
- /**
- * Instance counter
- */
- protected static AtomicInteger counter = new AtomicInteger(01);
/**
* Validate when connection is borrowed flag
*/
private volatile long lastValidated = System.currentTimeMillis();
/**
- * The instance number for this connection
- */
- private int instanceCount = 0;
- /**
* The parent
*/
protected ConnectionPool parent;
* @param parent - the parent connection pool
*/
public PooledConnection(PoolConfiguration prop, ConnectionPool parent) {
- instanceCount = counter.addAndGet(1);
poolProperties = prop;
this.parent = parent;
}