Class FileWatcher

java.lang.Object
java.lang.Thread
com.djrapitops.plan.settings.upkeep.FileWatcher
All Implemented Interfaces:
Runnable

public class FileWatcher extends Thread
Class for watching files for changes.
  • Constructor Details

    • FileWatcher

      public FileWatcher(File folder, ErrorLogger errorLogger)
    • FileWatcher

      public FileWatcher(Path watchedPath, ErrorLogger errorLogger)
  • Method Details

    • addToWatchlist

      public void addToWatchlist(WatchedFile watchedFile)
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • interrupt

      public void interrupt()
      Overrides:
      interrupt in class Thread
    • isRunning

      public boolean isRunning()