JDK-8038499 : define equivalent to java.nio.channels.NetworkChannel for java.net socket types
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-03-27
  • Updated: 2017-09-13
  • Resolved: 2017-09-13
Related Reports
Duplicate :  
Relates :  
Description
Define an equivalent to the NIO NetworkChannel type (NetworkSocket maybe)
which extends Closeable and defines the following existing common methods
across the XXSocket types:

    void bind(SocketAddress)
    SocketAddress getLocalSocketAddress()
    <T> NetworkSocket setOption(SocketOption<T>, T)
    <T> T getOption(SocketOption<T>)
    Set<SocketOption<?>> supportedOptions 
Comments
This is done for 9, so it can be closed I think? or is the suggestion to abstract the suggested functionality into a common interface. But to be used by whom? in the java.nio, NetworkChannel makes sense as there are other types of channels.
13-09-2017