net.spy.db
Class DBTTL

java.lang.Object
  extended bynet.spy.util.TTL
      extended bynet.spy.db.DBTTL

public class DBTTL
extends TTL

Used to track checked out DB connections to report on connections that have been checked out longer than we expect them to be.


Constructor Summary
DBTTL(long ttl)
          Get an instance of DBTTL.
DBTTL(long ttl, Object extra)
          Get an instance of DBTTL with an extra object.
 
Method Summary
protected  void doReport()
          Report DB specific message.
 String toString()
          String me.
 
Methods inherited from class net.spy.util.TTL
close, getExtraInfo, getMessageFromBundle, getTTL, hasReported, isClosed, isExpired, report, reportWithFormat, reset, setExtraInfo, setMaxReports, setReportInterval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBTTL

public DBTTL(long ttl)
Get an instance of DBTTL.


DBTTL

public DBTTL(long ttl,
             Object extra)
Get an instance of DBTTL with an extra object.

Method Detail

toString

public String toString()
String me.

Overrides:
toString in class TTL

doReport

protected void doReport()
Report DB specific message.

Overrides:
doReport in class TTL