Class ReferenceCountUpdater<T extends ReferenceCounted>
java.lang.Object
io.netty.util.internal.ReferenceCountUpdater<T>
Common logic for
ReferenceCounted implementations-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longgetUnsafeOffset(Class<? extends ReferenceCounted> clz, String fieldName) final intfinal booleanisLiveNonVolatile(T instance) final intfinal booleanfinal booleanfinal voidresetRefCnt(T instance) Resets the reference count to 1final Tfinal TvoidsetInitialValue(T instance) final voidAn unsafe operation that sets the reference count directlyprotected abstract longprotected abstract AtomicIntegerFieldUpdater<T> updater()
-
Constructor Details
-
ReferenceCountUpdater
protected ReferenceCountUpdater()
-
-
Method Details
-
getUnsafeOffset
-
updater
-
unsafeOffset
protected abstract long unsafeOffset() -
initialValue
public final int initialValue() -
setInitialValue
-
refCnt
-
isLiveNonVolatile
-
setRefCnt
An unsafe operation that sets the reference count directly -
resetRefCnt
Resets the reference count to 1 -
retain
-
retain
-
release
-
release
-