Class FSWatchUtil.Watcher

  • Enclosing class:
    FSWatchUtil

    public static class FSWatchUtil.Watcher
    extends Object
    • Constructor Detail

      • Watcher

        public Watcher​(Path rootPath,
                       String fileExtension,
                       Consumer<Collection<Path>> action)
        Parameters:
        rootPath - directory to check for changes
        fileExtension - file extensions to take into account
        action - action to trigger on discovered changes