Uses of Interface
java.nio.file.WatchKey
Package
Description
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
-
Uses of WatchKey in java.nio.file
Modifier and TypeMethodDescriptionWatchService.poll()
Retrieves and removes the next watch key, ornull
if none are present.Retrieves and removes the next watch key, waiting if necessary up to the specified wait time if none are yet present.default WatchKey
Path.register(WatchService watcher, WatchEvent.Kind<?>... events)
Registers the file located by this path with a watch service.Path.register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers)
Registers the file located by this path with a watch service.Watchable.register(WatchService watcher, WatchEvent.Kind<?>... events)
Registers an object with a watch service.Watchable.register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers)
Registers an object with a watch service.WatchService.take()
Retrieves and removes next watch key, waiting if none are yet present.