Package org.apache.commons.dbcp
Class AbandonedTrace
java.lang.Object
org.apache.commons.dbcp.AbandonedTrace
- Direct Known Subclasses:
DelegatingConnection
,DelegatingDatabaseMetaData
,DelegatingResultSet
,DelegatingStatement
Tracks db connection usage for recovering and reporting
abandoned db connections.
The JDBC Connection, Statement, and ResultSet classes
extend this class.
- Version:
- $Revision: 899987 $ $Date: 2010-01-16 11:51:16 -0500 (Sat, 16 Jan 2010) $
- Author:
- Glenn L. Nielsen
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new AbandonedTrace without config and without doing abandoned tracing.AbandonedTrace
(AbandonedConfig config) Construct a new AbandonedTrace with no parent object.AbandonedTrace
(AbandonedTrace parent) Construct a new AbandonedTrace with a parent object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Prints a stack trace of the code that created this object.
-
Constructor Details
-
AbandonedTrace
public AbandonedTrace()Create a new AbandonedTrace without config and without doing abandoned tracing. -
AbandonedTrace
Construct a new AbandonedTrace with no parent object.- Parameters:
config
- AbandonedConfig
-
AbandonedTrace
Construct a new AbandonedTrace with a parent object.- Parameters:
parent
- AbandonedTrace parent object
-
-
Method Details
-
printStackTrace
public void printStackTrace()Prints a stack trace of the code that created this object.
-