ACCURATE
modifier indicates that the WatchKey may not miss events
under any circumstances.
If a WatchService
implementation is based on polling it may miss files
that are created and deleted between two polls of the key (see below how
this can happen).FILE_TREE
modifier makes a WatchKey recursive.WatchKey
has become invalid.ExtendedWatchEventKind
class with extended watch event kinds and modifier tags that enable
non-standard features, like recursive watches and file rename tracking.WatchService
instance by selecting
an implementation that best fits the current platform.WatchService
and provides a WatchKey as a handle for that registration.WatchKey
(marks it as non-signalled) so that it's
corresponding WatchService
can report it again via it's
WatchService.poll()
and WatchService.take()
methods.Bootstrapper.newWatchService()
method will only produce polling watch services.WatchService
to be monitored for changes via it's register
methods.register
to
change the way changes to a watchable are reported.