de.malowa.greylister
Class CleanupTask

java.lang.Object
  extended by de.malowa.greylister.CleanupTask
All Implemented Interfaces:
ShutdownWatcher, java.lang.Runnable

public class CleanupTask
extends java.lang.Object
implements java.lang.Runnable, ShutdownWatcher

The CleanupTask cleans the database from unused entries. It will purge all record where the cleanup time has passed.

Author:
Marcel Lohmann

Constructor Summary
CleanupTask()
           
 
Method Summary
 void doShutdown()
          This method will be called during shutdown.
 void run()
          Purges old entries from the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CleanupTask

public CleanupTask()
Method Detail

run

public void run()
Purges old entries from the database.

Specified by:
run in interface java.lang.Runnable

doShutdown

public void doShutdown()
Description copied from interface: ShutdownWatcher
This method will be called during shutdown.

Specified by:
doShutdown in interface ShutdownWatcher
See Also:
ShutdownWatcher.doShutdown()