Class AbstractFileEventFunctions.AbstractFileWatcher

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, FileWatcher
    Enclosing class:
    AbstractFileEventFunctions

    protected abstract static class AbstractFileEventFunctions.AbstractFileWatcher
    extends java.lang.Object
    implements FileWatcher
    • Field Summary

      • Fields inherited from interface net.rubygrapefruit.platform.file.FileWatcher

        EMPTY
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractFileWatcher​(java.lang.Object details)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Stops watching and releases any native resources.
      protected abstract void stop​(java.lang.Object details, FunctionResult result)  
      • Methods inherited from class java.lang.Object

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

      • AbstractFileWatcher

        public AbstractFileWatcher​(java.lang.Object details)
    • Method Detail

      • close

        public void close()
        Description copied from interface: FileWatcher
        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
        Specified by:
        close in interface FileWatcher
      • stop

        protected abstract void stop​(java.lang.Object details,
                                     FunctionResult result)