Package com.helixframework.file.watcher
Class DirWatcher.DirBuilder
java.lang.Object
com.helixframework.file.watcher.DirWatcher.DirBuilder
- Enclosing class:
- DirWatcher
Sub-builder of
DirWatcher.Builder for creating directory watch configurations.-
Constructor Summary
ConstructorsConstructorDescriptionDirBuilder(DirWatcher.Builder parent, Path path, WatchEventType... events) Creates a new instance ofDirWatcher.DirBuilder. -
Method Summary
Modifier and TypeMethodDescriptionend()Completes configuration of the directory monitor.Search the directory recursively.
-
Constructor Details
-
DirBuilder
Creates a new instance ofDirWatcher.DirBuilder.- Parameters:
parent- parentDirWatcher.Builderpath- directory pathevents- filesystem events for which to monitor
-
-
Method Details
-
recursive
Search the directory recursively.- Returns:
- this
DirWatcher.DirBuilder
-
end
Completes configuration of the directory monitor.- Returns:
- the parent
DirWatcher.Builder
-