net.spy.db
Class DBTTL

java.lang.Object
  extended by java.util.TimerTask
      extended by net.spy.util.TTL
          extended by net.spy.db.DBTTL
All Implemented Interfaces:
Runnable

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, getLogger, getMessageFromBundle, getReportInterval, getTTL, hasReported, isClosed, isExpired, reportWithFormat, reset, run, setExtraInfo, setMaxReports, setReportInterval
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
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


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.