org.deegree.framework.util
Class Cleaner
java.lang.Object
  
java.util.TimerTask
      
org.deegree.framework.util.Cleaner
- All Implemented Interfaces: 
 - Runnable
 
public class Cleaner
- extends TimerTask
 
Simple class which performs an action in continuing intervals. per default the garbage collector
 will be called. But extending classes can change this behavior by overwriting the run() method.
- Version:
 
  - $Revision: 18195 $
 
- Author:
 
  - Andreas Poth
 
| 
Constructor Summary | 
Cleaner(int interval)
 
          Creates a new instance of Cleaner, which will have a delay of 60000 milis | 
 
| 
Method Summary | 
 void | 
run()
 
          the run mehtod will be called after the interval (milli seconds) passed to the constructor. | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Cleaner
public Cleaner(int interval)
- Creates a new instance of Cleaner, which will have a delay of 60000 milis
- Parameters:
 interval - milliseconds the run-method will be continuing called
 
run
public void run()
- the run mehtod will be called after the interval (milli seconds) passed to the constructor. An
 extending class can overwrite this method to perform something else then the default action.
 Per default the garbage collector will be called --> System.gc();
- Specified by:
 run in interface Runnable- Specified by:
 run in class TimerTask
 
 
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org