ReferenceCounted
implementations
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public static long | |
public final int | |
public final boolean | |
private boolean | |
private int | |
private static int | |
public final int | |
public final boolean | |
public final boolean | |
public final void | |
public final T | |
public final T | |
private T | |
private boolean | |
public void | |
public final void | |
private static int | |
private boolean | |
protected abstract long | |
protected abstract AtomicIntegerFieldUpdater |
ReferenceCountUpdater | back to summary |
---|---|
protected ReferenceCountUpdater() |
getUnsafeOffset | back to summary |
---|---|
public static long getUnsafeOffset(Class<? extends ReferenceCounted> clz, String fieldName) |
initialValue | back to summary |
---|---|
public final int initialValue() |
isLiveNonVolatile | back to summary |
---|---|
public final boolean isLiveNonVolatile(T instance) |
nonFinalRelease0 | back to summary |
---|---|
private boolean nonFinalRelease0(T instance, int decrement, int rawCnt, int realCnt) |
nonVolatileRawCnt | back to summary |
---|---|
private int nonVolatileRawCnt(T instance) |
realRefCnt | back to summary |
---|---|
private static int realRefCnt(int rawCnt) |
refCnt | back to summary |
---|---|
public final int refCnt(T instance) |
release | back to summary |
---|---|
public final boolean release(T instance) |
release | back to summary |
---|---|
public final boolean release(T instance, int decrement) |
resetRefCnt | back to summary |
---|---|
public final void resetRefCnt(T instance) Resets the reference count to 1 |
retain | back to summary |
---|---|
public final T retain(T instance) |
retain | back to summary |
---|---|
public final T retain(T instance, int increment) |
retain0 | back to summary |
---|---|
private T retain0(T instance, final int increment, final int rawIncrement) |
retryRelease0 | back to summary |
---|---|
private boolean retryRelease0(T instance, int decrement) |
setInitialValue | back to summary |
---|---|
public void setInitialValue(T instance) |
setRefCnt | back to summary |
---|---|
public final void setRefCnt(T instance, int refCnt) An unsafe operation that sets the reference count directly |
toLiveRealRefCnt | back to summary |
---|---|
private static int toLiveRealRefCnt(int rawCnt, int decrement) Like |
tryFinalRelease0 | back to summary |
---|---|
private boolean tryFinalRelease0(T instance, int expectRawCnt) |
unsafeOffset | back to summary |
---|---|
protected abstract long unsafeOffset() |
updater | back to summary |
---|---|
protected abstract AtomicIntegerFieldUpdater |