Package dev.shamoo.runtime.core
Class PluginDirectoryWatcher
java.lang.Object
dev.shamoo.runtime.core.PluginDirectoryWatcher
- All Implemented Interfaces:
AutoCloseable
Recursively observes plugin directories and emits one candidate path after a quiet window.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PluginDirectoryWatcher
public PluginDirectoryWatcher(Path pluginsDirectory, Duration quietWindow, Consumer<Path> listener, Consumer<Exception> errorListener) throws IOException - Throws:
IOException
-
-
Method Details
-
start
public void start()Starts observation. Calling this more than once has no effect. -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-