September 2019
Intermediate to advanced
816 pages
18h 47m
English
Watching paths for changes is just one of the thread-safe goals that can be accomplished via the JDK 7 NIO.2, low-level WatchService API.
In a nutshell, a path can be watched for changes by following two major steps:
At the API level, the starting point is the WatchService interface. This interface comes in different flavors for different file/operating systems.
This interface works hand-in-hand with two main classes. Together, they provide a convenient approach that you can implement to add watching capabilities ...