Making AbstractWatchKey#MAX_EVENT_LIST_SIZE tunable
Alan Bateman
Alan.Bateman at oracle.com
Thu Apr 11 06:14:18 UTC 2024
On 10/04/2024 16:35, Fabian Meumertzheim wrote:
> When using WatchService to watch a directory, the
> AbstractWatchKey#MAX_EVENT_LIST_SIZE constant (value: 512) makes it so
> that e.g. creating 1000 files in a single watched directory inevitably
> results in an OVERFLOW event.
BTW: Do you handle the OVERFLOW event and use it to re-scan the directory?
-Alan
More information about the nio-dev
mailing list