⇒ Index (Frames) | ⇒ Index (No Frames) | ⇒ Package | ⇒ Package Tree | ⇒ Full Tree 
com.tildemh.debbug

Class CacheWriter

java.lang.Object|
+--com.tildemh.debbug.CacheWriter

All Implemented Interfaces:
Runnable


publicclass CacheWriter
extends java.lang.Object
implements Runnable

Lazy writer for bug reports in cache. This will run in a separate thread to the main application. This should improve performance as cache entries are written often - when refreshing them and also when changing their read status.

This is released under the terms of the GNU Lesser General Public License (LGPL). See the COPYING file for details.

Author:
© Mark Howard <mh@debian.org> 2002

Constructor Summary

CacheWriter(String dir)

Method Summary

synchronized void

addItem(Bug bug)

Adds an item to be saved to disk

void

run()

Main loop

Constructor Details

CacheWriter

publicCacheWriter(String dir)

Parameters:
dir

Method Details

addItem

publicsynchronized voidaddItem(Bug bug)

Adds an item to be saved to disk

Parameters:
bug

run

publicvoidrun()

Main loop