Class CompatibleMarshallingEncoder

    • Method Detail

      • encode

        protected void encode​(io.netty.channel.ChannelHandlerContext ctx,
                              Object msg,
                              io.netty.buffer.ByteBuf out)
                       throws Exception
        Description copied from class: MessageToByteEncoder
        Encode a message into a ByteBuf. This method will be called for each written message that can be handled by this encoder.
        Specified by:
        encode in class MessageToByteEncoder<Object>
        Parameters:
        ctx - the ChannelHandlerContext which this MessageToByteEncoder belongs to
        msg - the message to encode
        out - the ByteBuf into which the encoded message will be written
        Throws:
        Exception - is thrown if an error occurs