Class FileSystemWatchService

java.lang.Object
org.eblocker.server.http.service.FileSystemWatchService

@Singleton public class FileSystemWatchService extends Object
  • Constructor Details

    • FileSystemWatchService

      @Inject public FileSystemWatchService(@Named("unlimitedCachePoolExecutor") Executor executor) throws IOException
      Throws:
      IOException
  • Method Details

    • watch

      public void watch(java.nio.file.Path path, java.util.function.Consumer<java.nio.file.Path> callback, java.nio.file.WatchEvent.Modifier... modifier) throws IOException
      Throws:
      IOException