Home / Type/ BinaryMemcacheMessage Type — netty Architecture

BinaryMemcacheMessage Type — netty Architecture

Architecture documentation for the BinaryMemcacheMessage type/interface in BinaryMemcacheMessage.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  716933ae_4754_4c67_ab10_3e02aa8de94f["BinaryMemcacheMessage"]
  abeb34cc_564d_9612_4c19_89fbb3d77194["BinaryMemcacheMessage.java"]
  716933ae_4754_4c67_ab10_3e02aa8de94f -->|defined in| abeb34cc_564d_9612_4c19_89fbb3d77194
  style 716933ae_4754_4c67_ab10_3e02aa8de94f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheMessage.java lines 32–191

@UnstableApi
public interface BinaryMemcacheMessage extends MemcacheMessage {

    /**
     * Returns the magic byte for the message.
     *
     * @return the magic byte.
     */
    byte magic();

    /**
     * Sets the magic byte.
     *
     * @param magic the magic byte to use.
     * @see BinaryMemcacheOpcodes for typesafe opcodes.
     */
    BinaryMemcacheMessage setMagic(byte magic);

    /**
     * Returns the opcode for the message.
     *
     * @return the opcode.
     */
    byte opcode();

    /**
     * Sets the opcode for the message.
     *
     * @param code the opcode to use.
     */
    BinaryMemcacheMessage setOpcode(byte code);

    /**
     * Returns the key length of the message.
     * <p/>
     * This may return 0, since the key is optional.
     *
     * @return the key length.
     */
    short keyLength();

    /**
     * Return the extras length of the message.
     * <p/>
     * This may be 0, since the extras content is optional.
     *
     * @return the extras length.
     */
    byte extrasLength();

    /**
     * Returns the data type of the message.
     *
     * @return the data type of the message.
     */
    byte dataType();

    /**
     * Sets the data type of the message.
     *
     * @param dataType the data type of the message.
     */
    BinaryMemcacheMessage setDataType(byte dataType);

    /**
     * Returns the total body length.
     * <p/>
     * Note that this may be 0, since the body is optional.
     *
     * @return the total body length.
     */
    int totalBodyLength();

    /**
     * Sets the total body length.
     * <p/>
     * Note that this may be 0, since the body length is optional.
     *
     * @param totalBodyLength the total body length.
     */
    BinaryMemcacheMessage setTotalBodyLength(int totalBodyLength);

Frequently Asked Questions

What is the BinaryMemcacheMessage type?
BinaryMemcacheMessage is a type/interface in the netty codebase, defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheMessage.java.
Where is BinaryMemcacheMessage defined?
BinaryMemcacheMessage is defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheMessage.java at line 32.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free