Package org.elasticsearch.watcher
Interface FileChangesListener
public interface FileChangesListener
Callback interface that file changes File Watcher is using to notify listeners about changes.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
file)
Called for every new subdirectory found in the watched directorydefault void
file)
Called for every file that disappeared in the watched directorydefault void
file)
Called for every subdirectory found in the watched directory during initializationdefault void
file)
Called for every file that was changed in the watched directorydefault void
file)
Called for every new file found in the watched directorydefault void
file)
Called for every file that disappeared in the watched directorydefault void
file)
Called for every file found in the watched directory during initialization
-
Method Details
-
onFileInit
default void onFileInit( file)Called for every file found in the watched directory during initialization -
onDirectoryInit
default void onDirectoryInit( file)Called for every subdirectory found in the watched directory during initialization -
onFileCreated
default void onFileCreated( file)Called for every new file found in the watched directory -
onFileDeleted
default void onFileDeleted( file)Called for every file that disappeared in the watched directory -
onFileChanged
default void onFileChanged( file)Called for every file that was changed in the watched directory -
onDirectoryCreated
default void onDirectoryCreated( file)Called for every new subdirectory found in the watched directory -
onDirectoryDeleted
default void onDirectoryDeleted( file)Called for every file that disappeared in the watched directory
-