deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.framework.util
Class Cleaner

java.lang.Object
  extended by java.util.TimerTask
      extended by org.deegree.framework.util.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: 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.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, which will have a delay of 60000 milis

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

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 java.lang.Runnable
Specified by:
run in class java.util.TimerTask

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org