Interface FileEventListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isRecursive()
      If the paths monitored by this listener should be monitored recursively or not.
      void onFailure()
      Called when monitoring has failed, after this listener may stop receiving events.
      void onFileAdd​(File file)
      Called when a new file was added.
      void onFileChange​(File file)
      Called when an existing file was modified.
      void onFileDirty​(File file)
      Called when an event was lost or the state might be dirty.
      void onFileRemove​(File file)
      Called when an existing file was removed.
    • Method Detail

      • isRecursive

        boolean isRecursive()
        If the paths monitored by this listener should be monitored recursively or not.
      • onFileAdd

        void onFileAdd​(File file)
        Called when a new file was added.
        Parameters:
        file - resource path.
      • onFileChange

        void onFileChange​(File file)
        Called when an existing file was modified.
        Parameters:
        file - resource path.
      • onFileRemove

        void onFileRemove​(File file)
        Called when an existing file was removed.
        Parameters:
        file - resource path.
      • onFileDirty

        void onFileDirty​(File file)
        Called when an event was lost or the state might be dirty.
        Parameters:
        file - resource path from event or mostly null.
      • onFailure

        void onFailure()
        Called when monitoring has failed, after this listener may stop receiving events.