DefaultFullBinaryMemcacheRequest Class — netty Architecture
Architecture documentation for the DefaultFullBinaryMemcacheRequest class in DefaultFullBinaryMemcacheRequest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1765f678_5f57_077c_3b35_b7cead332451["DefaultFullBinaryMemcacheRequest"] be55f799_48e6_00b6_d465_95060df54c47["DefaultFullBinaryMemcacheRequest.java"] 1765f678_5f57_077c_3b35_b7cead332451 -->|defined in| be55f799_48e6_00b6_d465_95060df54c47 3c392275_2f82_fa36_60d5_c81d5c93ea0a["DefaultFullBinaryMemcacheRequest()"] 1765f678_5f57_077c_3b35_b7cead332451 -->|method| 3c392275_2f82_fa36_60d5_c81d5c93ea0a cec27114_4105_5463_9366_3340fa6e74cb["ByteBuf()"] 1765f678_5f57_077c_3b35_b7cead332451 -->|method| cec27114_4105_5463_9366_3340fa6e74cb e8381eaf_28fd_1181_a352_962fb512f09f["FullBinaryMemcacheRequest()"] 1765f678_5f57_077c_3b35_b7cead332451 -->|method| e8381eaf_28fd_1181_a352_962fb512f09f 9889a52a_94ca_f10a_4b47_82339c5bf348["deallocate()"] 1765f678_5f57_077c_3b35_b7cead332451 -->|method| 9889a52a_94ca_f10a_4b47_82339c5bf348
Relationship Graph
Source Code
codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultFullBinaryMemcacheRequest.java lines 26–141
@UnstableApi
public class DefaultFullBinaryMemcacheRequest extends DefaultBinaryMemcacheRequest
implements FullBinaryMemcacheRequest {
private final ByteBuf content;
/**
* Create a new {@link DefaultBinaryMemcacheRequest} with the header, key and extras.
*
* @param key the key to use.
* @param extras the extras to use.
*/
public DefaultFullBinaryMemcacheRequest(ByteBuf key, ByteBuf extras) {
this(key, extras, Unpooled.buffer(0));
}
/**
* Create a new {@link DefaultBinaryMemcacheRequest} 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 DefaultFullBinaryMemcacheRequest(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 FullBinaryMemcacheRequest retain() {
super.retain();
return this;
}
@Override
public FullBinaryMemcacheRequest retain(int increment) {
super.retain(increment);
return this;
}
@Override
public FullBinaryMemcacheRequest touch() {
super.touch();
return this;
}
@Override
public FullBinaryMemcacheRequest touch(Object hint) {
super.touch(hint);
content.touch(hint);
return this;
}
@Override
protected void deallocate() {
super.deallocate();
content.release();
}
@Override
public FullBinaryMemcacheRequest 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 FullBinaryMemcacheRequest duplicate() {
Source
Frequently Asked Questions
What is the DefaultFullBinaryMemcacheRequest class?
DefaultFullBinaryMemcacheRequest is a class in the netty codebase, defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultFullBinaryMemcacheRequest.java.
Where is DefaultFullBinaryMemcacheRequest defined?
DefaultFullBinaryMemcacheRequest is defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultFullBinaryMemcacheRequest.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free