Class ServerChannelContext


  • public class ServerChannelContext
    extends ChannelContext<java.nio.channels.ServerSocketChannel>
    • Method Detail

      • acceptChannels

        public void acceptChannels​(java.util.function.Supplier<NioSelector> selectorSupplier)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • closeChannel

        public void closeChannel()
        Description copied from class: ChannelContext
        Schedules a channel to be closed by the selector event loop with which it is registered. If the channel is open and the state can be transitioned to closed, the close operation will be scheduled with the event loop. Depending on the underlying protocol of the channel, a close operation might simply close the socket channel or may involve reading and writing messages.
        Specified by:
        closeChannel in class ChannelContext<java.nio.channels.ServerSocketChannel>