Interface BinaryMemcacheMessage

    • Method Detail

      • magic

        byte magic()
        Returns the magic byte for the message.
        Returns:
        the magic byte.
      • opcode

        byte opcode()
        Returns the opcode for the message.
        Returns:
        the opcode.
      • setOpcode

        BinaryMemcacheMessage setOpcode​(byte code)
        Sets the opcode for the message.
        Parameters:
        code - the opcode to use.
      • keyLength

        short keyLength()
        Returns the key length of the message.

        This may return 0, since the key is optional.

        Returns:
        the key length.
      • extrasLength

        byte extrasLength()
        Return the extras length of the message.

        This may be 0, since the extras content is optional.

        Returns:
        the extras length.
      • dataType

        byte dataType()
        Returns the data type of the message.
        Returns:
        the data type of the message.
      • setDataType

        BinaryMemcacheMessage setDataType​(byte dataType)
        Sets the data type of the message.
        Parameters:
        dataType - the data type of the message.
      • totalBodyLength

        int totalBodyLength()
        Returns the total body length.

        Note that this may be 0, since the body is optional.

        Returns:
        the total body length.
      • setTotalBodyLength

        BinaryMemcacheMessage setTotalBodyLength​(int totalBodyLength)
        Sets the total body length.

        Note that this may be 0, since the body length is optional.

        Parameters:
        totalBodyLength - the total body length.
      • opaque

        int opaque()
        Returns the opaque value.
        Returns:
        the opaque value.
      • setOpaque

        BinaryMemcacheMessage setOpaque​(int opaque)
        Sets the opaque value.
        Parameters:
        opaque - the opaque value to use.
      • cas

        long cas()
        Returns the CAS identifier.
        Returns:
        the CAS identifier.
      • setCas

        BinaryMemcacheMessage setCas​(long cas)
        Sets the CAS identifier.
        Parameters:
        cas - the CAS identifier to use.
      • key

        ByteBuf key()
        Returns the optional key of the document.
        Returns:
        the key of the document.
      • extras

        ByteBuf extras()
        Returns a ByteBuf representation of the optional extras.
        Returns:
        the optional extras.