Class DefaultUnknownChannelReferenceHandler

    • Constructor Detail

      • DefaultUnknownChannelReferenceHandler

        public DefaultUnknownChannelReferenceHandler()
    • Method Detail

      • handleUnknownChannelCommand

        public Channel handleUnknownChannelCommand​(ConnectionService service,
                                                   byte cmd,
                                                   int channelId,
                                                   Buffer buffer)
                                            throws java.io.IOException
        Description copied from interface: UnknownChannelReferenceHandler
        Invoked when the connection service responsible for handling channel messages receives a message intended for an unknown channel.
        Specified by:
        handleUnknownChannelCommand in interface UnknownChannelReferenceHandler
        Parameters:
        service - The ConnectionService instance through which the message was received
        cmd - The requested command identifier
        channelId - The (unknown) target channel identifier
        buffer - The message Buffer containing the rest of the message
        Returns:
        The resolved Channel - if null then the message for the unknown channel is ignored.
        Throws:
        java.io.IOException - If failed to handle the request
      • sendFailureResponse

        protected IoWriteFuture sendFailureResponse​(ConnectionService service,
                                                    byte cmd,
                                                    int channelId)
                                             throws java.io.IOException
        Throws:
        java.io.IOException