Class FileWatcherService

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Runnable, WatcherService, org.springframework.beans.factory.DisposableBean

    public class FileWatcherService
    extends PathWatcherService
    Since:
    5.2.0
    • Constructor Summary

      Constructors 
      Constructor Description
      FileWatcherService​(java.io.File watchableFile, java.util.function.Consumer<java.io.File> onModify)  
      FileWatcherService​(java.io.File watchableFile, java.util.function.Consumer<java.io.File> onCreate, java.util.function.Consumer<java.io.File> onModify, java.util.function.Consumer<java.io.File> onDelete)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileWatcherService

        public FileWatcherService​(java.io.File watchableFile,
                                  java.util.function.Consumer<java.io.File> onCreate,
                                  java.util.function.Consumer<java.io.File> onModify,
                                  java.util.function.Consumer<java.io.File> onDelete)
      • FileWatcherService

        public FileWatcherService​(java.io.File watchableFile,
                                  java.util.function.Consumer<java.io.File> onModify)