Interface FileWatcherCallback


  • public interface FileWatcherCallback
    A callback that is invoked whenever a path has changed.
    • Method Detail

      • pathChanged

        void pathChanged​(FileWatcherCallback.Type type,
                         java.lang.String path)
        The given path has changed. See notes on the FileWatcher implementation for:
        • whether calls to this method can be expected from a single thread or multiple different ones,
        • how actual events are reported.
        Parameters:
        type - the type of the change.
        path - the path of the change. For FileWatcherCallback.Type.UNKNOWN it can be null.