public interface Watcher
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWatching(java.nio.file.Path path) |
void |
register(java.nio.file.Path path) |
java.nio.file.WatchKey |
take() |
void |
unregister(java.nio.file.Path path) |
void register(java.nio.file.Path path)
throws java.io.IOException
java.io.IOExceptionvoid unregister(java.nio.file.Path path)
throws java.io.IOException
java.io.IOExceptionboolean isWatching(java.nio.file.Path path)
java.nio.file.WatchKey take()
throws java.lang.InterruptedException
java.lang.InterruptedException