Class BytesChannelContext

    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class SocketChannelContext
        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.SocketChannel>
      • selectorShouldClose

        public boolean selectorShouldClose()
        Description copied from class: SocketChannelContext
        This method indicates if a selector should close this channel.
        Specified by:
        selectorShouldClose in class SocketChannelContext
        Returns:
        a boolean indicating if the selector should close