public interface FileSystemWatcher extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
unwatchPath(File file,
FileChangeCallback callback)
Stop watching a path.
|
void |
watchPath(File file,
FileChangeCallback callback)
Watch the given path recursively, and invoke the callback when a change is made.
|
void watchPath(File file, FileChangeCallback callback)
file
- The path to watchcallback
- The callbackvoid unwatchPath(File file, FileChangeCallback callback)
file
- the pathcallback
- the callbackCopyright © 2019 JBoss by Red Hat. All rights reserved.