Integrated: 8298057: (fs) Remove PollingWatchService.POLLING_INIT_DELAY
Alan Bateman
alanb at openjdk.org
Tue Dec 6 07:34:57 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.
This pull request has now been integrated.
Changeset: 923c7466
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/923c746650204e36053251c19cf91b7e41e938b0
Stats: 7 lines in 1 file changed: 0 ins; 3 del; 4 mod
8298057: (fs) Remove PollingWatchService.POLLING_INIT_DELAY
Reviewed-by: bpb, jpai
-------------
PR: https://git.openjdk.org/jdk/pull/11499
More information about the nio-dev
mailing list