public interface FileChangeListener
public class MyListener implements FileChangeListener {
long lastNotif = 0;
public void fileChanged(File file, long since, long now) {
if (now == lastNotifFlush) return;
if (isIntersetedInFile(file)) {
lastNotif = now;
flushCache(); // flush internal cache because file on disk changed
}
}
}
| Modifier and Type | Method and Description |
|---|---|
void |
filesCreated(List<File> entries) |
void |
filesModified(List<File> entries)
Notifies that the given files changed.
|
void |
filesRemoved(List<File> entries) |
Copyright © 2011 Nuxeo SA. All Rights Reserved.