Class FileWatcher

java.lang.Object
org.infinispan.commons.io.FileWatcher
All Implemented Interfaces:
AutoCloseable, Runnable

public class FileWatcher extends Object implements Runnable, AutoCloseable
Since:
15.0
  • Field Details Link icon

    • SLEEP Link icon

      public static final int SLEEP
  • Constructor Details Link icon

    • FileWatcher Link icon

      public FileWatcher()
  • Method Details Link icon

    • unwatch Link icon

      public void unwatch(Path path)
    • watch Link icon

      public void watch(Path path, Consumer<Path> callback)
    • run Link icon

      public void run()
      Specified by:
      run in interface Runnable
    • stop Link icon

      public void stop()
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable