Class UnsafeReferenceCountUpdater<T extends ReferenceCounted>
java.lang.Object
io.netty.util.internal.ReferenceCountUpdater<T>
io.netty.util.internal.UnsafeReferenceCountUpdater<T>
public abstract class UnsafeReferenceCountUpdater<T extends ReferenceCounted>
extends ReferenceCountUpdater<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class ReferenceCountUpdater
ReferenceCountUpdater.UpdaterType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleancasRawRefCnt(T refCnt, int expected, int value) protected final intgetAcquireRawRefCnt(T refCnt) protected final intgetAndAddRawRefCnt(T refCntObj, int increment) protected final intgetRawRefCnt(T refCnt) protected abstract longprotected final voidsafeInitializeRawRefCnt(T refCntObj, int value) protected final voidsetReleaseRawRefCnt(T refCnt, int value) Methods inherited from class ReferenceCountUpdater
getUnsafeOffset, initialValue, isLiveNonVolatile, refCnt, release, release, resetRefCnt, retain, retain, setInitialValue, setRefCnt, updaterTypeOfModifier and TypeMethodDescriptionstatic longgetUnsafeOffset(Class<? extends ReferenceCounted> clz, String fieldName) Deprecated.final intDeprecated.final booleanisLiveNonVolatile(T instance) Deprecated.final intDeprecated.final booleanDeprecated.final booleanDeprecated.final voidresetRefCnt(T instance) Deprecated.Resets the reference count to 1final TDeprecated.final TDeprecated.final voidsetInitialValue(T instance) Deprecated.final voidDeprecated.An unsafe operation that sets the reference count directlystatic <T extends ReferenceCounted>
ReferenceCountUpdater.UpdaterTypeupdaterTypeOf(Class<T> clz, String fieldName) Deprecated.
-
Constructor Details
-
UnsafeReferenceCountUpdater
protected UnsafeReferenceCountUpdater()
-
-
Method Details
-
refCntFieldOffset
protected abstract long refCntFieldOffset() -
safeInitializeRawRefCnt
- Specified by:
safeInitializeRawRefCntin classReferenceCountUpdater<T extends ReferenceCounted>
-
getAndAddRawRefCnt
- Specified by:
getAndAddRawRefCntin classReferenceCountUpdater<T extends ReferenceCounted>
-
getRawRefCnt
- Specified by:
getRawRefCntin classReferenceCountUpdater<T extends ReferenceCounted>
-
getAcquireRawRefCnt
- Specified by:
getAcquireRawRefCntin classReferenceCountUpdater<T extends ReferenceCounted>
-
setReleaseRawRefCnt
- Specified by:
setReleaseRawRefCntin classReferenceCountUpdater<T extends ReferenceCounted>
-
casRawRefCnt
- Specified by:
casRawRefCntin classReferenceCountUpdater<T extends ReferenceCounted>
-