public interface Watcher
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(File directory,
boolean watch)
Adds a directory to the watcher.
|
boolean |
add(File directory,
long polling)
Adds a directory to the watcher.
|
boolean |
removeAndStopIfNeeded(File directory)
If the directory was added, remove it.
|
boolean add(File directory, boolean watch)
directory - the directorywatch - true to enable the watch mode.boolean add(File directory, long polling)
directory - the directorypolling - the polling period in ms, -1 to disable the watch.boolean removeAndStopIfNeeded(File directory)
directory - the directoryCopyright © 2009–2014 OW2 Chameleon. All rights reserved.