Home / Class/ DefaultFullBinaryMemcacheResponse Class — netty Architecture

DefaultFullBinaryMemcacheResponse Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  5e4192e1_dac0_be89_1c12_458de2382720["DefaultFullBinaryMemcacheResponse"]
  72f81c43_b6a0_1cef_0bc0_9ac4cb68f7d0["DefaultFullBinaryMemcacheResponse.java"]
  5e4192e1_dac0_be89_1c12_458de2382720 -->|defined in| 72f81c43_b6a0_1cef_0bc0_9ac4cb68f7d0
  6f949753_9d28_1813_f6a0_74fdf6dde76f["DefaultFullBinaryMemcacheResponse()"]
  5e4192e1_dac0_be89_1c12_458de2382720 -->|method| 6f949753_9d28_1813_f6a0_74fdf6dde76f
  9cf06528_a79e_f081_16da_422602338867["ByteBuf()"]
  5e4192e1_dac0_be89_1c12_458de2382720 -->|method| 9cf06528_a79e_f081_16da_422602338867
  412e7c74_6ac4_0972_0a12_d68c3fc82581["FullBinaryMemcacheResponse()"]
  5e4192e1_dac0_be89_1c12_458de2382720 -->|method| 412e7c74_6ac4_0972_0a12_d68c3fc82581
  c9bc4b5e_e502_c90f_7cda_21602f69f339["deallocate()"]
  5e4192e1_dac0_be89_1c12_458de2382720 -->|method| c9bc4b5e_e502_c90f_7cda_21602f69f339

Relationship Graph

Source Code

codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultFullBinaryMemcacheResponse.java lines 26–141

@UnstableApi
public class DefaultFullBinaryMemcacheResponse extends DefaultBinaryMemcacheResponse
    implements FullBinaryMemcacheResponse {

    private final ByteBuf content;

    /**
     * Create a new {@link DefaultFullBinaryMemcacheResponse} with the header, key and extras.
     *
     * @param key    the key to use.
     * @param extras the extras to use.
     */
    public DefaultFullBinaryMemcacheResponse(ByteBuf key, ByteBuf extras) {
        this(key, extras, Unpooled.buffer(0));
    }

    /**
     * Create a new {@link DefaultFullBinaryMemcacheResponse} with the header, key, extras and content.
     *
     * @param key     the key to use.
     * @param extras  the extras to use.
     * @param content the content of the full request.
     */
    public DefaultFullBinaryMemcacheResponse(ByteBuf key, ByteBuf extras,
        ByteBuf content) {
        super(key, extras);
        this.content = ObjectUtil.checkNotNull(content, "content");
        setTotalBodyLength(keyLength() + extrasLength() + content.readableBytes());
    }

    @Override
    public ByteBuf content() {
        return content;
    }

    @Override
    public FullBinaryMemcacheResponse retain() {
        super.retain();
        return this;
    }

    @Override
    public FullBinaryMemcacheResponse retain(int increment) {
        super.retain(increment);
        return this;
    }

    @Override
    public FullBinaryMemcacheResponse touch() {
        super.touch();
        return this;
    }

    @Override
    public FullBinaryMemcacheResponse touch(Object hint) {
        super.touch(hint);
        content.touch(hint);
        return this;
    }

    @Override
    protected void deallocate() {
        super.deallocate();
        content.release();
    }

    @Override
    public FullBinaryMemcacheResponse copy() {
        ByteBuf key = key();
        if (key != null) {
            key = key.copy();
        }
        ByteBuf extras = extras();
        if (extras != null) {
            extras = extras.copy();
        }
        return newInstance(key, extras, content().copy());
    }

    @Override
    public FullBinaryMemcacheResponse duplicate() {

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free