Uses of Class
org.miaixz.bus.core.io.watch.WatchServiceWrapper
Packages that use WatchServiceWrapper
-
Uses of WatchServiceWrapper in org.miaixz.bus.core.io.watch
Methods in org.miaixz.bus.core.io.watch that return WatchServiceWrapperModifier and TypeMethodDescriptionstatic WatchServiceWrapperWatchServiceWrapper.of(WatchEvent.Kind<?>... events) 创建WatchServiceWrapperWatchServiceWrapper.registerPath(Path path, int maxDepth) 递归将指定路径加入到监听中 如果提供的是目录,则监听目录本身和目录下的目录和文件,深度取决于maxDepthWatchServiceWrapper.setEvents(WatchEvent.Kind<?>... events) 监听事件列表,见:StandardWatchEventKinds监听事件列表,见:StandardWatchEventKindsWatchServiceWrapper.setModifiers(WatchEvent.Modifier... modifiers) 设置监听选项,例如监听频率等,可设置项包括: