RFR: 8298057: (fs) Remove PollingWatchService.POLLING_INIT_DELAY
Brian Burkhalter
bpb at openjdk.org
Mon Dec 5 17:51:16 UTC 2022
On Sun, 4 Dec 2022 11:08:21 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> PollingWatchService is an implementation of WatchService for platforms that don't have a native implementation. It works by polling the timestamps of files in the registered directories. When a WatchService is initially created, the first poll should be at the polling interval. The changes in JDK-8285956 were intended to reduce the polling interval to 2s but also changed the initial poll to 1s. This PR just restores that part of the change so the first poll after creation will be at the polling interval, which was how it was originally before that change.
Marked as reviewed by bpb (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/11499
More information about the nio-dev
mailing list