Class FileWatcherService

java.lang.Object
com.logviewer.data2.FileWatcherService
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean

public class FileWatcherService extends Object implements org.springframework.beans.factory.DisposableBean
  • Constructor Details

    • FileWatcherService

      public FileWatcherService()
  • Method Details

    • watchDirectory

      public Destroyer watchDirectory(@NonNull Path dir, @NonNull Consumer<List<Path>> listener) throws IOException
      Throws:
      IOException
    • watchedDirectories

      public List<Path> watchedDirectories()
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean