接口 ReactorNettyCodec<P>

    • 方法详细资料

      • decode

        Collection<Message<P>> decode​(io.netty.buffer.ByteBuf inputBuffer)
        Decode the input ByteBuf into one or more Messages.
        参数:
        inputBuffer - the input buffer to decode from
        返回:
        0 or more decoded messages
      • encode

        void encode​(Message<P> message,
                    io.netty.buffer.ByteBuf outputBuffer)
        Encode the given Message to the output ByteBuf.
        参数:
        message - the message to encode
        outputBuffer - the buffer to write to