Class FilesWatcher


  • public class FilesWatcher
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FilesWatcher​(java.util.List<java.nio.file.Path> paths, java.util.function.BiConsumer<java.nio.file.Path,​java.nio.file.WatchEvent.Kind<java.nio.file.Path>> listener)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()  
      void watch()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilesWatcher

        public FilesWatcher​(java.util.List<java.nio.file.Path> paths,
                            java.util.function.BiConsumer<java.nio.file.Path,​java.nio.file.WatchEvent.Kind<java.nio.file.Path>> listener)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • cancel

        public void cancel()
      • watch

        public void watch()