Class NioServerSocketChannel

    • Field Detail

      • DEFAULT_SELECTOR_PROVIDER

        private static final java.nio.channels.spi.SelectorProvider DEFAULT_SELECTOR_PROVIDER
      • OPEN_SERVER_SOCKET_CHANNEL_WITH_FAMILY

        private static final java.lang.reflect.Method OPEN_SERVER_SOCKET_CHANNEL_WITH_FAMILY
    • Constructor Detail

      • NioServerSocketChannel

        public NioServerSocketChannel()
        Create a new instance
      • NioServerSocketChannel

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

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

        public NioServerSocketChannel​(java.nio.channels.ServerSocketChannel channel)
        Create a new instance using the given ServerSocketChannel.