Add an observer of events.
Add an observer of events.
the observer to add
the handle to the observer.
Start monitoring a symlink.
Start monitoring a symlink. As long as the target exists, this method will check if the parent directory of the target is being monitored. If the parent isn't being registered, we register it with the watch service. We add the target symlink to the set of symlinks watched in the parent directory. We also add the base symlink to the set of watched symlinks for this particular target.
The symlink base file.
Removes the symlink from monitoring.
Removes the symlink from monitoring. If there are no remaining targets in the parent directory, then we remove the parent directory from monitoring.
The symlink base to stop monitoring
Remove an observer.
Remove an observer.
the handle that was returned by addObserver
Monitors symlink targets. The SymlinkWatcher maintains a mapping of symlink targets to symlink. When the symlink target is modified, the watcher will detect the update and invoke a provided com.swoval.functional.Consumer for the symlink.