Class NioSocketChannel

    • Constructor Detail

      • NioSocketChannel

        public NioSocketChannel()
        Create a new instance
      • NioSocketChannel

        public NioSocketChannel​(java.nio.channels.spi.SelectorProvider provider)
        Create a new instance using the given SelectorProvider.
      • NioSocketChannel

        public NioSocketChannel​(java.nio.channels.spi.SelectorProvider provider,
                                SocketProtocolFamily family)
        Create a new instance using the given SelectorProvider and protocol family (supported only since JDK 15).
      • NioSocketChannel

        public NioSocketChannel​(java.nio.channels.SocketChannel socket)
        Create a new instance using the given SocketChannel.
      • NioSocketChannel

        public NioSocketChannel​(Channel parent,
                                java.nio.channels.SocketChannel socket)
        Create a new instance
        Parameters:
        parent - the Channel which created this instance or null if it was created by the user
        socket - the SocketChannel which will be used