Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8330077 Allow max number of events to be buffered to be configurable to avoid OVERFLOW_EVENT
  3. JDK-8336680

Release Note: Add a System Property to Set the Maximum Number of `WatchService` Events before Overflow

XMLWordPrintable

    • generic
    • generic

      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.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: