Class Purger

All Implemented Interfaces:
Runnable, DaemonRunnable

@Component public class Purger extends DaemonRunner implements 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
  • Constructor Details

    • Purger

      public Purger()
  • Method Details

    • run

      public void run()
      Loops through all messages and deletes them if their time has come.
      Specified by:
      run in interface Runnable