Caller has to implement the FileWatchdog.Callback interface. Then,
new FileWatchdog(filename, 30000, callback).start();
This class is extended from Thread, so you could manipulate it as a normal thread, such as interrupt, suspend, and change priority.
The watchdog executes at the lowest priority, so it won't affect much of the system performance. @author tomyeh
|
|