Class WatchServiceFileSystemWatcher
java.lang.Object
io.quarkus.deployment.dev.filesystem.watch.WatchServiceFileSystemWatcher
- All Implemented Interfaces:
Runnable
File system watcher service based on JDK7
WatchService
. Instantiating this class will create a new thread,
that will run until close()
is called.
NOTE: this was copied from Xnio, it provides more functionality than we currently need.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
run()
void
unwatchPath
(File file, FileChangeCallback callback) void
watchPath
(File file, FileChangeCallback callback)
-
Constructor Details
-
WatchServiceFileSystemWatcher
-
-
Method Details
-
run
public void run() -
watchPath
-
unwatchPath
-
close
- Throws:
IOException
-