|
Language Processing v2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectTimerTask
Reaper
public class Reaper
manage file deletion.
| 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 |
|---|
protected static final Timer reaper
protected final ArrayList<File>[] deathRow
protected int current
| Constructor Detail |
|---|
public Reaper(int minutes)
| Method Detail |
|---|
public void reap(File file)
public void run()
run in interface Runnablerun in class TimerTask
|
(c) 2008 Axel T. Schreiner |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||