public interface FileWatch
Modifier and Type | Method and Description |
---|---|
Restore |
subscribe(java.nio.file.Path path,
java.util.function.Consumer<? super EventOf<java.nio.file.Path>> consumer)
Subscribe to notifications for the existence or modifications in the file.
|
Restore subscribe(java.nio.file.Path path, java.util.function.Consumer<? super EventOf<java.nio.file.Path>> consumer)
path
- The path of the file to watch. Must not be null.consumer
-