Callback Based Selectors

Remi Forax forax at univ-mlv.fr
Thu Apr 12 19:06:53 UTC 2018


Hi Alan,

The API and the javadoc looks great !
I've noticed that some NPEs are not documented in Selector.

I do not know enough of that part of the internals to help more.

cheers,
Rémi

----- Mail original -----
> De: "Alan Bateman" <Alan.Bateman at oracle.com>
> À: "nio-dev" <nio-dev at openjdk.java.net>
> Envoyé: Mercredi 11 Avril 2018 10:27:46
> Objet: Re: Callback Based Selectors

> I've re-based the patch that adds select(Consumer<SelectionKey>) and
> friends. This follows the changes for JDK-8201315 so the action is
> invoked while synchronized on the selector and the selected-key set, not
> the key set for registrations.
> 
>    http://cr.openjdk.java.net/~alanb/8199433/webrev/
> 
> There's a still a bit of work to do on the Solaris event port
> implementation related to error recovery, also additional tests will be
> needed, but otherwise I think all the interactions with the existing
> spec have been worked out.
> 
> -Alan


More information about the nio-dev mailing list