org.deegree_impl.tools
Class Cleaner

java.lang.Object
  extended byjava.util.TimerTask
      extended byorg.deegree_impl.tools.Cleaner
All Implemented Interfaces:
java.lang.Runnable

public class Cleaner
extends java.util.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: 1.2 $
Author:
Andreas Poth

Field Summary
 
Fields inherited from class java.util.TimerTask
 
Constructor Summary
Cleaner(int interval)
          Creates a new instance of Cleaner
 
Method Summary
 void run()
          the run mehtod will called after the interval (milli seconds) passed to the constructor.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cleaner

public Cleaner(int interval)
Creates a new instance of Cleaner

Parameters:
interval - milliseconds the run-method will be continuing called
Method Detail

run

public void run()
the run mehtod will 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();