Class NioServerSocketChannel


  • public class NioServerSocketChannel
    extends NioChannel
    • Constructor Detail

      • NioServerSocketChannel

        public NioServerSocketChannel​(java.nio.channels.ServerSocketChannel serverSocketChannel)
    • Method Detail

      • setContext

        public void setContext​(ServerChannelContext context)
        This method sets the context for a server socket channel. The context is called when a new channel is accepted, an exception occurs, or it is time to close the channel.
        Parameters:
        context - to call
      • getRawChannel

        public java.nio.channels.ServerSocketChannel getRawChannel()
        Specified by:
        getRawChannel in class NioChannel
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object