RFR: 8298057: (fs) Remove PollingWatchService.POLLING_INIT_DELAY

Alan Bateman alanb at openjdk.org
Mon Dec 5 17:00:50 UTC 2022


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.

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

Commit messages:
 - Initial commit

Changes: https://git.openjdk.org/jdk/pull/11499/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11499&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8298057
  Stats: 6 lines in 1 file changed: 0 ins; 3 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/11499.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11499/head:pull/11499

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


More information about the nio-dev mailing list