A token representing the registration of a watchable object with a WatchService
.
A token representing the registration of a watchable object with a WatchService
.
A watch service that watches registered objects for changes and events.
A watch service that watches registered objects for changes and events.
For example a file manager may use a watch service to monitor a directory for changes so that it can update its display of the list of files when files are created or deleted.
Note if any of the methods, or a stream returned by the stream
method, is used after this WatchService
has been
closed, the operation will die with a ClosedWatchServiceException
.