Package org.sonews.util
Class Purger
java.lang.Object
org.sonews.daemon.DaemonRunner
org.sonews.util.Purger
- All Implemented Interfaces:
Runnable
,DaemonRunnable
The purger is started in configurable intervals to search for messages that
can be purged. A message must be deleted if its lifetime has exceeded, if it
was marked as deleted or if the maximum number of articles in the database is
reached.
- Since:
- sonews/0.5.0
- Author:
- Christian Lins
-
Field Summary
Fields inherited from class org.sonews.daemon.DaemonRunner
daemon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Loops through all messages and deletes them if their time has come.Methods inherited from class org.sonews.daemon.DaemonRunner
setDaemon
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.sonews.daemon.DaemonRunnable
dispose, setDaemon