RFR: 8293067: (fs) Implement WatchService using system library (macOS)

Alan Bateman alanb at openjdk.org
Mon Oct 3 11:40:25 UTC 2022


On Mon, 3 Oct 2022 11:32:18 GMT, Maxim Kartashev <mkartashev at openjdk.org> wrote:

> My primary concern with this approach is that it doesn't give a lot of advantage over `PollingWatchService` when you need to watch for changes in a very deep hierarchy of directories, the main use case for my employer. At the same time FSEvents API naturally provide the ability for recursive watch almost for free resource-wise.

Do you know if FSEvents is implemented on a supported/document interface? I think it would be useful to know if there are  alternatives that provide a way to block for events so we don't have the callback.

-------------

PR: https://git.openjdk.org/jdk/pull/10140


More information about the nio-dev mailing list