public abstract class AbstractBinaryMemcacheMessage<H extends BinaryMemcacheMessageHeader> extends AbstractMemcacheObject implements BinaryMemcacheMessage<H>
BinaryMemcacheMessage.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBinaryMemcacheMessage(H header,
String key,
ByteBuf extras)
Create a new instance with all properties set.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
getExtras()
Returns a
ByteBuf representation of the optional extras. |
H |
getHeader()
Returns the
BinaryMemcacheMessageHeader which contains the full required header. |
String |
getKey()
Returns the optional key of the document.
|
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. |
BinaryMemcacheMessage<H> |
retain()
Increases the reference count by
1. |
BinaryMemcacheMessage<H> |
retain(int increment)
Increases the reference count by the specified
increment. |
getDecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDecoderResult, setDecoderResultpublic H getHeader()
BinaryMemcacheMessageBinaryMemcacheMessageHeader which contains the full required header.getHeader in interface BinaryMemcacheMessage<H extends BinaryMemcacheMessageHeader>public String getKey()
BinaryMemcacheMessagegetKey in interface BinaryMemcacheMessage<H extends BinaryMemcacheMessageHeader>public ByteBuf getExtras()
BinaryMemcacheMessageByteBuf representation of the optional extras.getExtras in interface BinaryMemcacheMessage<H extends BinaryMemcacheMessageHeader>public int refCnt()
ReferenceCounted0, it means this object has been deallocated.refCnt in interface ReferenceCountedpublic BinaryMemcacheMessage<H> retain()
BinaryMemcacheMessage1.retain in interface BinaryMemcacheMessage<H extends BinaryMemcacheMessageHeader>retain in interface MemcacheMessageretain in interface ReferenceCountedpublic BinaryMemcacheMessage<H> retain(int increment)
BinaryMemcacheMessageincrement.retain in interface BinaryMemcacheMessage<H extends BinaryMemcacheMessageHeader>retain in interface MemcacheMessageretain in interface ReferenceCountedpublic boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounteddecrement and deallocates this object if the reference
count reaches at 0.release in interface ReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedCopyright © 2008–2013 The Netty Project. All rights reserved.