public class DefaultFullBinaryMemcacheRequest extends DefaultBinaryMemcacheRequest implements FullBinaryMemcacheRequest
FullBinaryMemcacheRequest
.REQUEST_MAGIC_BYTE
EMPTY_LAST_CONTENT
Constructor and Description |
---|
DefaultFullBinaryMemcacheRequest(String key,
ByteBuf extras)
Create a new
DefaultBinaryMemcacheRequest with the header, key and extras. |
DefaultFullBinaryMemcacheRequest(String key,
ByteBuf extras,
ByteBuf content)
Create a new
DefaultBinaryMemcacheRequest with the header, key, extras and content. |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder . |
FullBinaryMemcacheRequest |
copy()
Create a deep copy of this
ByteBufHolder . |
FullBinaryMemcacheRequest |
duplicate()
Duplicate the
ByteBufHolder . |
int |
refCnt()
Returns the reference count of this object.
|
boolean |
release()
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0 . |
boolean |
release(int decrement)
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0 . |
FullBinaryMemcacheRequest |
retain()
Increases the reference count by
1 . |
FullBinaryMemcacheRequest |
retain(int increment)
Increases the reference count by the specified
increment . |
FullBinaryMemcacheRequest |
touch()
Records the current access location of this object for debugging purposes.
|
FullBinaryMemcacheRequest |
touch(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
reserved, setReserved
cas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLength
decoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reserved, setReserved
cas, dataType, extras, extrasLength, key, keyLength, magic, opaque, opcode, setCas, setDataType, setExtras, setExtrasLength, setKey, setKeyLength, setMagic, setOpaque, setOpcode, setTotalBodyLength, totalBodyLength
public DefaultFullBinaryMemcacheRequest(String key, ByteBuf extras)
DefaultBinaryMemcacheRequest
with the header, key and extras.key
- the key to use.extras
- the extras to use.public DefaultFullBinaryMemcacheRequest(String key, ByteBuf extras, ByteBuf content)
DefaultBinaryMemcacheRequest
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 int refCnt()
ReferenceCounted
0
, it means this object has been deallocated.refCnt
in interface ReferenceCounted
refCnt
in class AbstractBinaryMemcacheMessage
public FullBinaryMemcacheRequest retain()
BinaryMemcacheMessage
1
.retain
in interface ByteBufHolder
retain
in interface BinaryMemcacheMessage
retain
in interface BinaryMemcacheRequest
retain
in interface FullBinaryMemcacheRequest
retain
in interface FullMemcacheMessage
retain
in interface LastMemcacheContent
retain
in interface MemcacheContent
retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
retain
in class DefaultBinaryMemcacheRequest
public FullBinaryMemcacheRequest retain(int increment)
BinaryMemcacheMessage
increment
.retain
in interface ByteBufHolder
retain
in interface BinaryMemcacheMessage
retain
in interface BinaryMemcacheRequest
retain
in interface FullBinaryMemcacheRequest
retain
in interface FullMemcacheMessage
retain
in interface LastMemcacheContent
retain
in interface MemcacheContent
retain
in interface MemcacheMessage
retain
in interface ReferenceCounted
retain
in class DefaultBinaryMemcacheRequest
public FullBinaryMemcacheRequest touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface BinaryMemcacheMessage
touch
in interface BinaryMemcacheRequest
touch
in interface FullBinaryMemcacheRequest
touch
in interface FullMemcacheMessage
touch
in interface LastMemcacheContent
touch
in interface MemcacheContent
touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
touch
in class DefaultBinaryMemcacheRequest
public FullBinaryMemcacheRequest touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface BinaryMemcacheMessage
touch
in interface BinaryMemcacheRequest
touch
in interface FullBinaryMemcacheRequest
touch
in interface FullMemcacheMessage
touch
in interface LastMemcacheContent
touch
in interface MemcacheContent
touch
in interface MemcacheMessage
touch
in interface ReferenceCounted
touch
in class DefaultBinaryMemcacheRequest
public boolean release()
ReferenceCounted
1
and deallocates this object if the reference count reaches at
0
.release
in interface ReferenceCounted
release
in class AbstractBinaryMemcacheMessage
true
if and only if the reference count became 0
and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounted
decrement
and deallocates this object if the reference
count reaches at 0
.release
in interface ReferenceCounted
release
in class AbstractBinaryMemcacheMessage
true
if and only if the reference count became 0
and this object has been deallocatedpublic FullBinaryMemcacheRequest copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface FullBinaryMemcacheRequest
copy
in interface FullMemcacheMessage
copy
in interface LastMemcacheContent
copy
in interface MemcacheContent
public FullBinaryMemcacheRequest duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface FullBinaryMemcacheRequest
duplicate
in interface FullMemcacheMessage
duplicate
in interface LastMemcacheContent
duplicate
in interface MemcacheContent
Copyright © 2008–2015 The Netty Project. All rights reserved.