Home / Class/ BinaryMemcacheResponseDecoder Class — netty Architecture

BinaryMemcacheResponseDecoder Class — netty Architecture

Architecture documentation for the BinaryMemcacheResponseDecoder class in BinaryMemcacheResponseDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  1cd6893a_9bbe_3776_4cfd_6443c4ad565c["BinaryMemcacheResponseDecoder"]
  a1bdcdd1_9820_2550_c9ba_0dca6979d583["BinaryMemcacheResponseDecoder.java"]
  1cd6893a_9bbe_3776_4cfd_6443c4ad565c -->|defined in| a1bdcdd1_9820_2550_c9ba_0dca6979d583
  4111e383_88aa_982e_9b50_fe57aa9ef913["BinaryMemcacheResponseDecoder()"]
  1cd6893a_9bbe_3776_4cfd_6443c4ad565c -->|method| 4111e383_88aa_982e_9b50_fe57aa9ef913
  be97f602_1525_ff20_da7e_765356ae997d["BinaryMemcacheResponse()"]
  1cd6893a_9bbe_3776_4cfd_6443c4ad565c -->|method| be97f602_1525_ff20_da7e_765356ae997d

Relationship Graph

Source Code

codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheResponseDecoder.java lines 25–56

@UnstableApi
public class BinaryMemcacheResponseDecoder
    extends AbstractBinaryMemcacheDecoder<BinaryMemcacheResponse> {

    public BinaryMemcacheResponseDecoder() {
        this(DEFAULT_MAX_CHUNK_SIZE);
    }

    public BinaryMemcacheResponseDecoder(int chunkSize) {
        super(chunkSize);
    }

    @Override
    protected BinaryMemcacheResponse decodeHeader(ByteBuf in) {
        DefaultBinaryMemcacheResponse header = new DefaultBinaryMemcacheResponse();
        header.setMagic(in.readByte());
        header.setOpcode(in.readByte());
        header.setKeyLength(in.readShort());
        header.setExtrasLength(in.readByte());
        header.setDataType(in.readByte());
        header.setStatus(in.readShort());
        header.setTotalBodyLength(in.readInt());
        header.setOpaque(in.readInt());
        header.setCas(in.readLong());
        return header;
    }

    @Override
    protected BinaryMemcacheResponse buildInvalidMessage() {
        return new DefaultBinaryMemcacheResponse(Unpooled.EMPTY_BUFFER, Unpooled.EMPTY_BUFFER);
    }
}

Frequently Asked Questions

What is the BinaryMemcacheResponseDecoder class?
BinaryMemcacheResponseDecoder is a class in the netty codebase, defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheResponseDecoder.java.
Where is BinaryMemcacheResponseDecoder defined?
BinaryMemcacheResponseDecoder is defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/BinaryMemcacheResponseDecoder.java at line 25.

Analyze Your Own Codebase

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

Try Supermodel Free