Class WindowsFileEventFunctions
java.lang.Object
net.rubygrapefruit.platform.internal.jni.AbstractFileEventFunctions
net.rubygrapefruit.platform.internal.jni.WindowsFileEventFunctions
- All Implemented Interfaces:
NativeIntegration
-
Nested Class Summary
Nested classes/interfaces inherited from class net.rubygrapefruit.platform.internal.jni.AbstractFileEventFunctions
AbstractFileEventFunctions.AbstractFileWatcher, AbstractFileEventFunctions.NativeFileWatcherCallback, AbstractFileEventFunctions.WatcherFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstartWatching(Collection<String> paths, FileWatcherCallback callback) Start watching the given directory hierarchies.Methods inherited from class net.rubygrapefruit.platform.internal.jni.AbstractFileEventFunctions
createWatcher
-
Constructor Details
-
WindowsFileEventFunctions
public WindowsFileEventFunctions()
-
-
Method Details
-
startWatching
Start watching the given directory hierarchies.Remarks:
- Changes to any descendants to the given paths are reported.
- Changes to the given paths themselves are not reported.
- Changes are reported as canonical paths. This means:
- When watching a path with a different case, the canonical one is used to report changes.
- Events arrive from a single background thread unique to the
FileWatcher. - Removals are reported as a
MODIFIEDand aREMOVEDevent. - Renames are reported as the source file being
REMOVED. The creation of the target file is not reported. - Exceptions happening in the callback are currently silently ignored.
-