Folder Watchdog
object FolderWatchdog
A thin wrapper on top of java.nio.file.WatchService in the JDK to allow for easier controls with the maestro daemon in watching directory changes using a dedicated thread to avoid blocking.
A lot of the implementation is "inspired" from the official examples
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The watch key and also any potential listeners are removed
Link copied to clipboard
Link copied to clipboard
Removes everything and should be called after stop
Link copied to clipboard
Removes the listener for folder if applicable.
Link copied to clipboard