Class AbstractCASReferenceCounted
- java.lang.Object
-
- org.apache.bookkeeper.mledger.util.AbstractCASReferenceCounted
-
- All Implemented Interfaces:
io.netty.util.ReferenceCounted
- Direct Known Subclasses:
EntryImpl
public abstract class AbstractCASReferenceCounted extends java.lang.Object implements io.netty.util.ReferenceCountedAbstract base class for classes wants to implementReferenceCounted.
-
-
Constructor Summary
Constructors Constructor Description AbstractCASReferenceCounted()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddeallocate()Called oncerefCnt()is equals 0.intrefCnt()booleanrelease()booleanrelease(int decrement)io.netty.util.ReferenceCountedretain()io.netty.util.ReferenceCountedretain(int increment)protected voidsetRefCnt(int refCnt)An unsafe operation intended for use by a subclass that sets the reference count of the buffer directlyio.netty.util.ReferenceCountedtouch()
-
-
-
Method Detail
-
refCnt
public final int refCnt()
- Specified by:
refCntin interfaceio.netty.util.ReferenceCounted
-
setRefCnt
protected final void setRefCnt(int refCnt)
An unsafe operation intended for use by a subclass that sets the reference count of the buffer directly
-
retain
public io.netty.util.ReferenceCounted retain()
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
retain
public io.netty.util.ReferenceCounted retain(int increment)
- Specified by:
retainin interfaceio.netty.util.ReferenceCounted
-
touch
public io.netty.util.ReferenceCounted touch()
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
release
public boolean release()
- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
release
public boolean release(int decrement)
- Specified by:
releasein interfaceio.netty.util.ReferenceCounted
-
deallocate
protected abstract void deallocate()
Called oncerefCnt()is equals 0.
-
-