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
onDirectoryCreated(Path file)
Called for every new subdirectory found in the watched directorydefault void
onDirectoryDeleted(Path file)
Called for every file that disappeared in the watched directorydefault void
onDirectoryInit(Path file)
Called for every subdirectory found in the watched directory during initializationdefault void
onFileChanged(Path file)
Called for every file that was changed in the watched directorydefault void
onFileCreated(Path file)
Called for every new file found in the watched directorydefault void
onFileDeleted(Path file)
Called for every file that disappeared in the watched directorydefault void
onFileInit(Path file)
Called for every file found in the watched directory during initialization
-
Method Details
-
onFileInit
Called for every file found in the watched directory during initialization -
onDirectoryInit
Called for every subdirectory found in the watched directory during initialization -
onFileCreated
Called for every new file found in the watched directory -
onFileDeleted
Called for every file that disappeared in the watched directory -
onFileChanged
Called for every file that was changed in the watched directory -
onDirectoryCreated
Called for every new subdirectory found in the watched directory -
onDirectoryDeleted
Called for every file that disappeared in the watched directory
-