Package com.helixframework.file.watcher
Class DirWatcher.Builder
java.lang.Object
com.helixframework.file.watcher.DirWatcher.Builder
- Enclosing class:
- DirWatcher
Creates an instance of
DirWatcher.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an instance ofDirWatcher.Watch the directory.dir(Path path, WatchEventType... events) Watch the directory, but only for the specified filesystem events.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dir
Watch the directory.- Parameters:
path- directory path- Returns:
- a
DirWatcher.DirBuilder
-
dir
Watch the directory, but only for the specified filesystem events.- Parameters:
path- directory pathevents- filsystem events to monitor- Returns:
- a
DirWatcher.DirBuilder
-
build
Creates an instance ofDirWatcher.- Returns:
- a
DirWatcher - Throws:
IOException- if an error occurs creating the watcher
-