Language Processing
v2.0

wcs
Class Reaper

Object
  extended by TimerTask
      extended by Reaper
All Implemented Interfaces:
Runnable

public class Reaper
extends TimerTask

manage file deletion.

Version:
2.1

Field Summary
protected  int current
          next queue to be deleted.
protected  ArrayList<File>[] deathRow
          queues awaiting delete.
protected static Timer reaper
          thread running all reapers.
 
Constructor Summary
Reaper(int minutes)
          create a reaper to act at standard intervals.
 
Method Summary
 void reap(File file)
          add a file to be deleted; it has at least one interval to live.
 void run()
          delete files in current queue and cycle the queues.
 
Methods inherited from class TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reaper

protected static final Timer reaper
thread running all reapers.


deathRow

protected final ArrayList<File>[] deathRow
queues awaiting delete.


current

protected int current
next queue to be deleted.

Constructor Detail

Reaper

public Reaper(int minutes)
create a reaper to act at standard intervals.

Method Detail

reap

public void reap(File file)
add a file to be deleted; it has at least one interval to live.


run

public void run()
delete files in current queue and cycle the queues.

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask


(c) 2008 Axel T. Schreiner