JDK 23 |
---|
23Resolved |
The `java.nio.file.WatchService` implementations buffer up to a maximum number of events before discarding events and then queuing the `OVERFLOW` event. A new system property, `jdk.nio.file.WatchService.maxEventsPerPoll`, has been added to allow someone to specify the maximum number of pending events which may be enqueued before an `OVERFLOW` event is emitted. The value of this property must be a positive integer.