Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8199433

(se) select(Consumer<SelectionKey> action) as alternative to selected-key set

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b19

      Backports

        Description

        This issue tracks a proposal from Richard Warburton for a select method that invokes an action on each selected key as an alternative to the selected-key set. The original proposal is here:

        http://mail.openjdk.java.net/pipermail/nio-dev/2016-January/003479.html

        The main advantage of the proposal is that it avoids the GC pressure due to adding and removing elements from the selected-key set.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                alanb Alan Bateman
                Reporter:
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: