Class Jep380SocketChannelImplAdapter

  • All Implemented Interfaces:
    java.net.SocketOptions

    final class Jep380SocketChannelImplAdapter
    extends java.net.SocketImpl
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.channels.SocketChannel channel  
      (package private) int soTimeoutMs  
      • Fields inherited from class java.net.SocketImpl

        address, fd, localport, port
      • Fields inherited from interface java.net.SocketOptions

        IP_MULTICAST_IF, IP_MULTICAST_IF2, IP_MULTICAST_LOOP, IP_TOS, SO_BINDADDR, SO_BROADCAST, SO_KEEPALIVE, SO_LINGER, SO_OOBINLINE, SO_RCVBUF, SO_REUSEADDR, SO_REUSEPORT, SO_SNDBUF, SO_TIMEOUT, TCP_NODELAY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void accept​(java.net.SocketImpl s)  
      protected int available()  
      protected void bind​(java.net.InetAddress host, int port)  
      protected void close()  
      protected void connect​(java.lang.String host, int port)  
      protected void connect​(java.net.InetAddress address, int port)  
      protected void connect​(java.net.SocketAddress address, int timeout)  
      protected void create​(boolean stream)  
      protected java.io.InputStream getInputStream()  
      java.lang.Object getOption​(int optID)  
      protected java.io.OutputStream getOutputStream()  
      protected void listen​(int backlog)  
      protected void sendUrgentData​(int data)  
      void setOption​(int optID, java.lang.Object value)  
      • Methods inherited from class java.net.SocketImpl

        getFileDescriptor, getInetAddress, getLocalPort, getOption, getPort, setOption, setPerformancePreferences, shutdownInput, shutdownOutput, supportedOptions, supportsUrgentData, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • channel

        private final java.nio.channels.SocketChannel channel
      • soTimeoutMs

        volatile int soTimeoutMs
    • Constructor Detail

      • Jep380SocketChannelImplAdapter

        public Jep380SocketChannelImplAdapter​(java.nio.channels.SocketChannel channel)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        protected void close()
                      throws java.io.IOException
        Specified by:
        close in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • getInputStream

        protected java.io.InputStream getInputStream()
                                              throws java.io.IOException
        Specified by:
        getInputStream in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • getOutputStream

        protected java.io.OutputStream getOutputStream()
                                                throws java.io.IOException
        Specified by:
        getOutputStream in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • getOption

        public java.lang.Object getOption​(int optID)
                                   throws java.net.SocketException
        Throws:
        java.net.SocketException
      • setOption

        public void setOption​(int optID,
                              java.lang.Object value)
                       throws java.net.SocketException
        Throws:
        java.net.SocketException
      • accept

        protected void accept​(java.net.SocketImpl s)
                       throws java.io.IOException
        Specified by:
        accept in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • available

        protected int available()
                         throws java.io.IOException
        Specified by:
        available in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • bind

        protected void bind​(java.net.InetAddress host,
                            int port)
                     throws java.io.IOException
        Specified by:
        bind in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • connect

        protected void connect​(java.lang.String host,
                               int port)
                        throws java.io.IOException
        Specified by:
        connect in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • connect

        protected void connect​(java.net.InetAddress address,
                               int port)
                        throws java.io.IOException
        Specified by:
        connect in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • connect

        protected void connect​(java.net.SocketAddress address,
                               int timeout)
                        throws java.io.IOException
        Specified by:
        connect in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • create

        protected void create​(boolean stream)
                       throws java.io.IOException
        Specified by:
        create in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • listen

        protected void listen​(int backlog)
                       throws java.io.IOException
        Specified by:
        listen in class java.net.SocketImpl
        Throws:
        java.io.IOException
      • sendUrgentData

        protected void sendUrgentData​(int data)
                               throws java.io.IOException
        Specified by:
        sendUrgentData in class java.net.SocketImpl
        Throws:
        java.io.IOException