com.codestudio.util
Class PoolSkimmerThread

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

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

PoolSkimmer manages the clean up of dead and expired objects floating around the pool.

Another Thread, LifeGuardThread, also monitors ObjectPool instances. LifeGuardThread is more humane; it attempts to send troubled objects back to their pools. PoolSkimmerThread simply disposes of already dead or useless objects.

See Also:
LifeGuardThread

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

Constructor Detail

PoolSkimmerThread

public PoolSkimmerThread(int skimmerSecs,
                         ObjectPool pool)
Method Detail

run

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


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