Class NioSocketChannel

    • Field Detail

      • DEFAULT_SELECTOR_PROVIDER

        private static final java.nio.channels.spi.SelectorProvider DEFAULT_SELECTOR_PROVIDER
    • 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.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