Class AbstractBinaryMemcacheDecoder<M extends BinaryMemcacheMessage>

    • Field Detail

    • Constructor Detail

      • AbstractBinaryMemcacheDecoder

        protected AbstractBinaryMemcacheDecoder​(int chunkSize)
        Create a new AbstractBinaryMemcacheDecoder with custom settings.
        Parameters:
        chunkSize - the maximum chunk size of the payload.
    • Method Detail

      • resetDecoder

        protected void resetDecoder()
        Prepare for next decoding iteration.
      • decodeHeader

        protected abstract M decodeHeader​(ByteBuf in)
        Decode and return the parsed BinaryMemcacheMessage.
        Parameters:
        in - the incoming buffer.
        Returns:
        the decoded header.
      • buildInvalidMessage

        protected abstract M buildInvalidMessage()
        Helper method to create a upstream message when the incoming parsing did fail.
        Returns:
        a message indicating a decoding failure.