@UnstableApi public class DefaultFullBinaryMemcacheResponse extends DefaultBinaryMemcacheResponse implements FullBinaryMemcacheResponse
FullBinaryMemcacheResponse
.RESPONSE_MAGIC_BYTE
EMPTY_LAST_CONTENT
Constructor and Description |
---|
DefaultFullBinaryMemcacheResponse(ByteBuf key,
ByteBuf extras)
Create a new
DefaultFullBinaryMemcacheResponse with the header, key and extras. |
DefaultFullBinaryMemcacheResponse(ByteBuf key,
ByteBuf extras,
ByteBuf content)
Create a new
DefaultFullBinaryMemcacheResponse with the header, key, extras and content. |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder . |
FullBinaryMemcacheResponse |
copy()
Creates a deep copy of this
ByteBufHolder . |
protected void |
deallocate()
Called once
AbstractReferenceCounted.refCnt() is equals 0. |
FullBinaryMemcacheResponse |
duplicate()
Duplicates this
ByteBufHolder . |
FullBinaryMemcacheResponse |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content . |
FullBinaryMemcacheResponse |
retain()
Increases the reference count by
1 . |
FullBinaryMemcacheResponse |
retain(int increment)
Increases the reference count by the specified
increment . |
FullBinaryMemcacheResponse |
retainedDuplicate()
Duplicates this
ByteBufHolder . |
FullBinaryMemcacheResponse |
touch()
Records the current access location of this object for debugging purposes.
|
FullBinaryMemcacheResponse |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
setStatus, status
cas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLength
decoderResult, setDecoderResult
refCnt, release, release, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setStatus, status
cas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setKey, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLength
public DefaultFullBinaryMemcacheResponse(ByteBuf key, ByteBuf extras)
DefaultFullBinaryMemcacheResponse
with the header, key and extras.key
- the key to use.extras
- the extras to use.public DefaultFullBinaryMemcacheResponse(ByteBuf key, ByteBuf extras, ByteBuf content)
DefaultFullBinaryMemcacheResponse
with the header, key, extras and content.key
- the key to use.extras
- the extras to use.content
- the content of the full request.public ByteBuf content()
ByteBufHolder
ByteBufHolder
.content
in interface ByteBufHolder
public FullBinaryMemcacheResponse retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface BinaryMemcacheMessage
retain
in interface BinaryMemcacheResponse
retain
in interface FullBinaryMemcacheResponse
retain
in interface FullMemcacheMessage
retain
in interface LastMemcacheContent
retain
in interface MemcacheContent
retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
retain
in class DefaultBinaryMemcacheResponse
public FullBinaryMemcacheResponse retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface BinaryMemcacheMessage
retain
in interface BinaryMemcacheResponse
retain
in interface FullBinaryMemcacheResponse
retain
in interface FullMemcacheMessage
retain
in interface LastMemcacheContent
retain
in interface MemcacheContent
retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
retain
in class DefaultBinaryMemcacheResponse
public FullBinaryMemcacheResponse touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface BinaryMemcacheMessage
touch
in interface BinaryMemcacheResponse
touch
in interface FullBinaryMemcacheResponse
touch
in interface FullMemcacheMessage
touch
in interface LastMemcacheContent
touch
in interface MemcacheContent
touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
touch
in class DefaultBinaryMemcacheResponse
public FullBinaryMemcacheResponse touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface BinaryMemcacheMessage
touch
in interface BinaryMemcacheResponse
touch
in interface FullBinaryMemcacheResponse
touch
in interface FullMemcacheMessage
touch
in interface LastMemcacheContent
touch
in interface MemcacheContent
touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
touch
in class DefaultBinaryMemcacheResponse
protected void deallocate()
AbstractReferenceCounted
AbstractReferenceCounted.refCnt()
is equals 0.deallocate
in class AbstractBinaryMemcacheMessage
public FullBinaryMemcacheResponse copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface FullBinaryMemcacheResponse
copy
in interface FullMemcacheMessage
copy
in interface LastMemcacheContent
copy
in interface MemcacheContent
public FullBinaryMemcacheResponse duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface FullBinaryMemcacheResponse
duplicate
in interface FullMemcacheMessage
duplicate
in interface LastMemcacheContent
duplicate
in interface MemcacheContent
public FullBinaryMemcacheResponse retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
retainedDuplicate
in interface FullBinaryMemcacheResponse
retainedDuplicate
in interface FullMemcacheMessage
retainedDuplicate
in interface LastMemcacheContent
retainedDuplicate
in interface MemcacheContent
ByteBuf.retainedDuplicate()
public FullBinaryMemcacheResponse replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
replace
in interface FullBinaryMemcacheResponse
replace
in interface FullMemcacheMessage
replace
in interface LastMemcacheContent
replace
in interface MemcacheContent
Copyright © 2008–2024 The Netty Project. All rights reserved.