com.codestudio.util
Class LifeGuardThread

java.lang.Object
  |
  +--com.codestudio.util.LifeGuardThread
All Implemented Interfaces:
java.lang.Runnable

public class LifeGuardThread
extends java.lang.Object
implements java.lang.Runnable

Asks SmartObjects to manage themselves and clean up if necessary. For JDBCPool objects, this means asking hanging connections to clear themselves and either return to their respective pools or to dispose of themselves.

LifeGuardThread attempts to salvage objects that may still be of use; PoolSkimmerThread also monitors ObjectPool instances, but PoolSkimmerThread is a little harsher and mechanical -- it simply disposes of objects that are already dead or useless.

See Also:
PoolSkimmerThread

Constructor Summary
LifeGuardThread(int timeoutSecs, ObjectPool p)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeGuardThread

public LifeGuardThread(int timeoutSecs,
                       ObjectPool p)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 1999-2001 The Code Studio. All Rights Reserved.