Class AbandonedTrace

java.lang.Object
org.apache.commons.dbcp.AbandonedTrace
Direct Known Subclasses:
DelegatingConnection, DelegatingDatabaseMetaData, DelegatingResultSet, DelegatingStatement

public class AbandonedTrace extends Object
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 Details

    • AbandonedTrace

      public AbandonedTrace()
      Create a new AbandonedTrace without config and without doing abandoned tracing.
    • AbandonedTrace

      public AbandonedTrace(AbandonedConfig config)
      Construct a new AbandonedTrace with no parent object.
      Parameters:
      config - AbandonedConfig
    • AbandonedTrace

      public AbandonedTrace(AbandonedTrace parent)
      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.