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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 11
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b19

        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.

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

                Created:
                Updated:
                Resolved: