Class AbstractBinaryMemcacheEncoder<M extends BinaryMemcacheMessage>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Constructor Detail

      • AbstractBinaryMemcacheEncoder

        public AbstractBinaryMemcacheEncoder()
    • Method Detail

      • encodeHeader

        protected abstract void encodeHeader​(io.netty.buffer.ByteBuf buf,
                                             M msg)
        Encode the header.

        This methods needs to be implemented by a sub class because the header is different for both requests and responses.

        Parameters:
        buf - the ByteBuf to write into.
        msg - the message to encode.