org.nuxeo.ecm.webengine.notifier
Interface FileChangeListener
- All Known Implementing Classes:
- AbstractFileChangeListener, FileChangeNotifier
public interface FileChangeListener
An example of listener implementation:
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
}
}
}
- Author:
- Bogdan Stefanescu
filesModified
void filesModified(List<File> entries)
throws Exception
- Notifies that the given files changed.
- Throws:
Exception
filesCreated
void filesCreated(List<File> entries)
throws Exception
- Throws:
Exception
filesRemoved
void filesRemoved(List<File> entries)
throws Exception
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.