8198372: API to create a SelectableChannel to a FileDescriptor

Chris Hegarty chris.hegarty at oracle.com
Wed Jun 20 14:30:44 UTC 2018

On 20/06/18 14:16, David Lloyd wrote:
> A few comments...
> +    public interface SelectableChannelCloser {
> I wonder if some basic implementation should be provided for this.  I
> can't think of a case where a user would be able to implement this
> interface without native code of some sort (is this the intention?).
I don't think that a default implementation is not needed here,
or even how one could be written without making a number of
assumptions. Close, just like read and write, needs to be
handled by whatever external entity is interested in the
readiness information.

 > The webrev with the proposed API is here:
 >   http://cr.openjdk.java.net/~alanb/8198372/webrev/index.html

A few minor typos: "selected-kkey" "wth"

Otherwise, I think this quite good. It provides a low-level
mechanism to inter-operate with other socket types on the


More information about the nio-dev mailing list