public interface FileWatchService
Modifier and Type | Method and Description |
---|---|
void |
initialize(FileWatchLogger log)
Initializes watch service
|
FileWatcher |
watch(List<File> filesToWatch,
FileWatchCallback onChange)
Watch the given sequence of files or directories.
|
void initialize(FileWatchLogger log) throws FileWatchException
log
- loggerFileWatchException
- when initialization failsFileWatcher watch(List<File> filesToWatch, FileWatchCallback onChange) throws FileWatchException
filesToWatch
- The files to watch.onChange
- A callback that is executed whenever something changes.FileWatchException
- when unexpected problems occurCopyright © 2013–2019. All rights reserved.