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