Interface FileWatcher

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable
    All Known Implementing Classes:
    AbstractFileEventFunctions.AbstractFileWatcher

    public interface FileWatcher
    extends java.io.Closeable
    A handle for watching file system locations.
    • Method Detail

      • close

        void close()
            throws java.io.IOException
        Stops watching and releases any native resources. No more calls to the associated FileWatcherCallback will happen after this method returns.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException