Class AbstractServerChannel

    • Field Detail

    • Method Detail

      • open

        public OpenFuture open​(int recipient,
                               long rwSize,
                               long packetSize,
                               Buffer buffer)
        Description copied from interface: Channel
        For a server channel, this method will actually open the channel
        Specified by:
        open in interface Channel
        Parameters:
        recipient - Recipient identifier
        rwSize - Read/Write window size (uint32)
        packetSize - Preferred maximum packet size (uint32)
        buffer - Incoming Buffer that triggered the call. Note: the buffer's read position is exactly after the information that read to this call was decoded
        Returns:
        An OpenFuture for the channel open request
      • handleOpenSuccess

        public void handleOpenSuccess​(int recipient,
                                      long rwSize,
                                      long packetSize,
                                      Buffer buffer)
                               throws IOException
        Description copied from interface: Channel
        For a client channel, this method will be called internally by the session when the confirmation has been received.
        Specified by:
        handleOpenSuccess in interface Channel
        Parameters:
        recipient - Recipient identifier
        rwSize - Read/Write window size (uint32)
        packetSize - Preferred maximum packet size (uint32)
        buffer - Incoming Buffer that triggered the call. Note: the buffer's read position is exactly after the information that read to this call was decoded
        Throws:
        IOException - If failed to handle the success
      • handleOpenFailure

        public void handleOpenFailure​(Buffer buffer)
        Description copied from interface: Channel
        For a client channel, this method will be called internally by the session when the server has rejected this channel opening.
        Specified by:
        handleOpenFailure in interface Channel
        Parameters:
        buffer - Incoming Buffer that triggered the call. Note: the buffer's read position is exactly after the information that read to this call was decoded