Описание тега watchservice
WatchService is a Java API for watching changes on a filesystem. It was introduced in Java 7.
WatchService is a Java API for monitoring file systems for changes. It can be used to detect new files, modified files or file deletions. It was introduced in Java 7 and is part of the (new) NIO system.