Thanks Dan and Alan, I found my answer concerning Windows, Linux, and Solaris here (comment from Alan): http://java.dzone.com/news/how-watch-file-system-changes
SensitivityWatchEventModifier does look like what I was looking for. Is JDK9 the target for the native Mac implementation? On 2 November 2013 08:50, Alan Bateman <alan.bate...@oracle.com> wrote: > On 01/11/2013 16:33, Christopher Brown wrote: > >> Hello, >> >> As I understand it, the file watcher service introduced with JDK 7 uses >> native (near real-time) notifications on Windows and Linux, but polling on >> Mac OS X. >> >> First off, is this correct? >> >> Second, if it is, what is the polling interval on Mac OS X (and can it be >> configured)? >> >> As Dan mentioned, we do need to add a native implementation for Mac at > some point (the original Mac port didn't have anything and the polling > implementation is simple implementation when getting a port going or where > the operating system doesn't have a facility). > > As regards configuring the polling interval then it can be done on a per > watched directory basis via a JDK-specific WatchEvent.Modifier, see > com.sun.nio.file.**SensitivityWatchEventModifier. > > -Alan. >