Interface FileChangesListener


  • public interface FileChangesListener
    Callback interface that file changes File Watcher is using to notify listeners about changes.
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void onDirectoryCreated​(java.nio.file.Path file)
      Called for every new subdirectory found in the watched directory
      default void onDirectoryDeleted​(java.nio.file.Path file)
      Called for every file that disappeared in the watched directory
      default void onDirectoryInit​(java.nio.file.Path file)
      Called for every subdirectory found in the watched directory during initialization
      default void onFileChanged​(java.nio.file.Path file)
      Called for every file that was changed in the watched directory
      default void onFileCreated​(java.nio.file.Path file)
      Called for every new file found in the watched directory
      default void onFileDeleted​(java.nio.file.Path file)
      Called for every file that disappeared in the watched directory
      default void onFileInit​(java.nio.file.Path file)
      Called for every file found in the watched directory during initialization
    • Method Detail

      • onFileInit

        default void onFileInit​(java.nio.file.Path file)
        Called for every file found in the watched directory during initialization
      • onDirectoryInit

        default void onDirectoryInit​(java.nio.file.Path file)
        Called for every subdirectory found in the watched directory during initialization
      • onFileCreated

        default void onFileCreated​(java.nio.file.Path file)
        Called for every new file found in the watched directory
      • onFileDeleted

        default void onFileDeleted​(java.nio.file.Path file)
        Called for every file that disappeared in the watched directory
      • onFileChanged

        default void onFileChanged​(java.nio.file.Path file)
        Called for every file that was changed in the watched directory
      • onDirectoryCreated

        default void onDirectoryCreated​(java.nio.file.Path file)
        Called for every new subdirectory found in the watched directory
      • onDirectoryDeleted

        default void onDirectoryDeleted​(java.nio.file.Path file)
        Called for every file that disappeared in the watched directory