-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
public interface FileSystemWatcher extends java.io.CloseableFile system watcher service. This watcher can be used to receive notifications about a specific path.- Author:
- Stuart Douglas
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidunwatchPath(java.io.File file, FileChangeCallback callback)Stop watching a path.voidwatchPath(java.io.File file, FileChangeCallback callback)Watch the given path recursively, and invoke the callback when a change is made.
-
-
-
Method Detail
-
watchPath
void watchPath(java.io.File file, FileChangeCallback callback)Watch the given path recursively, and invoke the callback when a change is made.- Parameters:
file- The path to watchcallback- The callback
-
unwatchPath
void unwatchPath(java.io.File file, FileChangeCallback callback)Stop watching a path.- Parameters:
file- the pathcallback- the callback
-
-