Interface FileStoreListener

All Known Implementing Classes:
CachedFileStore

public interface FileStoreListener
Interface to be used with a FileWatcher to be notified of changes.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onFileModify​(Path path)
    Triggered when a file on the registered path has been modified or created.
    default void
    onFileRemove​(Path path)
    Triggered when a file on the registered path has been deleted.
  • Method Details

    • onFileModify

      default void onFileModify(Path path)
      Triggered when a file on the registered path has been modified or created.
      Parameters:
      path - the basedir-relative path to the file that was modified.
    • onFileRemove

      default void onFileRemove(Path path)
      Triggered when a file on the registered path has been deleted.
      Parameters:
      path - the basedir-relative path to the file that was modified.