Class AbstractMemcacheObject
java.lang.Object
io.netty.util.AbstractReferenceCounted
io.netty.handler.codec.memcache.AbstractMemcacheObject
- All Implemented Interfaces:
DecoderResultProvider, MemcacheObject, ReferenceCounted
- Direct Known Subclasses:
AbstractBinaryMemcacheMessage, DefaultMemcacheContent
@UnstableApi
public abstract class AbstractMemcacheObject
extends AbstractReferenceCounted
implements MemcacheObject
The default
MemcacheObject implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of decoding this object.voidsetDecoderResult(DecoderResult result) Updates the result of decoding this object.Methods inherited from class AbstractReferenceCounted
deallocate, refCnt, release, release, retain, retain, setRefCnt, touchModifier and TypeMethodDescriptionprotected abstract voidCalled onceAbstractReferenceCounted.refCnt()is equals 0.intrefCnt()Returns the reference count of this object.booleanrelease()Decreases the reference count by1and deallocates this object if the reference count reaches at0.booleanrelease(int decrement) Decreases the reference count by the specifieddecrementand deallocates this object if the reference count reaches at0.retain()Increases the reference count by1.retain(int increment) Increases the reference count by the specifiedincrement.protected final voidsetRefCnt(int refCnt) An unsafe operation intended for use by a subclass that sets the reference count of the buffer directlytouch()Records the current access location of this object for debugging purposes.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReferenceCounted
touchModifier and TypeMethodDescriptionRecords the current access location of this object with an additional arbitrary information for debugging purposes.
-
Constructor Details
-
AbstractMemcacheObject
protected AbstractMemcacheObject()
-
-
Method Details
-
decoderResult
Description copied from interface:DecoderResultProviderReturns the result of decoding this object.- Specified by:
decoderResultin interfaceDecoderResultProvider
-
setDecoderResult
Description copied from interface:DecoderResultProviderUpdates the result of decoding this object. This method is supposed to be invoked by a decoder. Do not call this method unless you know what you are doing.- Specified by:
setDecoderResultin interfaceDecoderResultProvider
-