DefaultBinaryMemcacheResponse Class — netty Architecture
Architecture documentation for the DefaultBinaryMemcacheResponse class in DefaultBinaryMemcacheResponse.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 783b4e21_788a_6fc0_d7c6_46920a360780["DefaultBinaryMemcacheResponse"] b19cefd9_976e_56a6_7740_6c97bdc34f15["DefaultBinaryMemcacheResponse.java"] 783b4e21_788a_6fc0_d7c6_46920a360780 -->|defined in| b19cefd9_976e_56a6_7740_6c97bdc34f15 0f1c594e_da5a_fd59_145f_85ff650d7bde["DefaultBinaryMemcacheResponse()"] 783b4e21_788a_6fc0_d7c6_46920a360780 -->|method| 0f1c594e_da5a_fd59_145f_85ff650d7bde 59f111ca_f22d_5fd5_1357_bb36be3756dc["status()"] 783b4e21_788a_6fc0_d7c6_46920a360780 -->|method| 59f111ca_f22d_5fd5_1357_bb36be3756dc 6e9da973_6141_b057_ee6a_e876a38d7df2["BinaryMemcacheResponse()"] 783b4e21_788a_6fc0_d7c6_46920a360780 -->|method| 6e9da973_6141_b057_ee6a_e876a38d7df2 dd527570_2dba_353a_ee97_6963c61830cc["copyMeta()"] 783b4e21_788a_6fc0_d7c6_46920a360780 -->|method| dd527570_2dba_353a_ee97_6963c61830cc
Relationship Graph
Source Code
codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultBinaryMemcacheResponse.java lines 24–105
@UnstableApi
public class DefaultBinaryMemcacheResponse extends AbstractBinaryMemcacheMessage implements BinaryMemcacheResponse {
/**
* Default magic byte for a request.
*/
public static final byte RESPONSE_MAGIC_BYTE = (byte) 0x81;
private short status;
/**
* Create a new {@link DefaultBinaryMemcacheResponse} with the header only.
*/
public DefaultBinaryMemcacheResponse() {
this(null, null);
}
/**
* Create a new {@link DefaultBinaryMemcacheResponse} with the header and key.
*
* @param key the key to use.
*/
public DefaultBinaryMemcacheResponse(ByteBuf key) {
this(key, null);
}
/**
* Create a new {@link DefaultBinaryMemcacheResponse} with the header, key and extras.
*
* @param key the key to use.
* @param extras the extras to use.
*/
public DefaultBinaryMemcacheResponse(ByteBuf key, ByteBuf extras) {
super(key, extras);
setMagic(RESPONSE_MAGIC_BYTE);
}
@Override
public short status() {
return status;
}
@Override
public BinaryMemcacheResponse setStatus(short status) {
this.status = status;
return this;
}
@Override
public BinaryMemcacheResponse retain() {
super.retain();
return this;
}
@Override
public BinaryMemcacheResponse retain(int increment) {
super.retain(increment);
return this;
}
@Override
public BinaryMemcacheResponse touch() {
super.touch();
return this;
}
@Override
public BinaryMemcacheResponse touch(Object hint) {
super.touch(hint);
return this;
}
/**
* Copies special metadata hold by this instance to the provided instance
*
* @param dst The instance where to copy the metadata of this instance to
*/
void copyMeta(DefaultBinaryMemcacheResponse dst) {
super.copyMeta(dst);
dst.status = status;
}
Source
Frequently Asked Questions
What is the DefaultBinaryMemcacheResponse class?
DefaultBinaryMemcacheResponse is a class in the netty codebase, defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultBinaryMemcacheResponse.java.
Where is DefaultBinaryMemcacheResponse defined?
DefaultBinaryMemcacheResponse is defined in codec-memcache/src/main/java/io/netty/handler/codec/memcache/binary/DefaultBinaryMemcacheResponse.java at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free