Example usage for Java java.nio.file WatchService fields, constructors, methods, implement or subclass
The text is from its open source code.
void | close() Closes this watch service. |
WatchKey | poll(long timeout, TimeUnit unit) Retrieves and removes the next watch key, waiting if necessary up to the specified wait time if none are yet present. |
WatchKey | take() Retrieves and removes next watch key, waiting if none are yet present. |