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

  • Constructor Details

    • FileWatcher

      public FileWatcher()
  • Method Details

    • unwatch

      public void unwatch(Path path)
    • watch

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

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

      public void stop()
    • close

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