8236246: SelectorProvider support for creating a DatagramChannel that is not interruptible

Alan Bateman Alan.Bateman at oracle.com
Thu Dec 19 18:02:11 UTC 2019


On 19/12/2019 16:58, Chris Hegarty wrote:
> :
> This seems fine.
>
> There is a lot of duplication between the platform-specific
> DefaultSelectorProvider code. Can this be consolidated?
>
I agree. It used to be one class that used Class.forName to load the 
platform specific provider. At another time there was very platform 
specific selection going on in some of the implementations, e.g. Linux 
implementation would return the poll or epoll SelectorProvider based on 
the kernel version. They have been simplified in recent releases to just 
return one implementation without needing to do anything else to choose. 
So yes, something for a follow-on issue I think.

-Alan


More information about the nio-dev mailing list