Class AbandonedTrace

  • All Implemented Interfaces:
    org.apache.commons.pool2.TrackedUse
    Direct Known Subclasses:
    DelegatingConnection, DelegatingResultSet, DelegatingStatement

    public class AbandonedTrace
    extends java.lang.Object
    implements org.apache.commons.pool2.TrackedUse
    Tracks db connection usage for recovering and reporting abandoned db connections. The JDBC Connection, Statement, and ResultSet classes extend this class.
    Since:
    2.0
    Version:
    $Id: AbandonedTrace.java 1649430 2015-01-04 21:29:32Z tn $
    Author:
    Glenn L. Nielsen
    • Constructor Summary

      Constructors 
      Constructor Description
      AbandonedTrace()
      Create a new AbandonedTrace without config and without doing abandoned tracing.
      AbandonedTrace​(AbandonedTrace parent)
      Construct a new AbandonedTrace with a parent object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getLastUsed()
      Get the last time this object was used in ms.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbandonedTrace

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

        public AbandonedTrace​(AbandonedTrace parent)
        Construct a new AbandonedTrace with a parent object.
        Parameters:
        parent - AbandonedTrace parent object
    • Method Detail

      • getLastUsed

        public long getLastUsed()
        Get the last time this object was used in ms.
        Specified by:
        getLastUsed in interface org.apache.commons.pool2.TrackedUse
        Returns:
        long time in ms