public class FileChangeNotifier extends Object
Modifier and Type | Class and Description |
---|---|
class |
FileChangeNotifier.FileEntry |
Constructor and Description |
---|
FileChangeNotifier() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(FileChangeListener listener) |
protected void |
fireNotification(FileChangeNotifier.FileEntry entry) |
void |
removeListener(FileChangeListener listener) |
void |
start() |
void |
start(int startAfter,
int interval) |
void |
stop() |
void |
unwatch(File file) |
void |
unwatch(String id,
File file) |
String |
watch(File file) |
String |
watch(String id,
File file) |
public FileChangeNotifier()
public void start(int startAfter, int interval)
public void start()
public void stop()
public String watch(File file) throws IOException
IOException
public String watch(String id, File file) throws IOException
IOException
public void unwatch(File file) throws IOException
IOException
public void unwatch(String id, File file) throws IOException
IOException
public void addListener(FileChangeListener listener)
public void removeListener(FileChangeListener listener)
protected void fireNotification(FileChangeNotifier.FileEntry entry)
Copyright © 2015 Nuxeo SA. All rights reserved.