@InterfaceAudience.Private public class UnsafeSharedMemoryBucketEntry extends BucketCache.BucketEntry
| Modifier and Type | Field and Description |
|---|---|
private boolean |
markedForEvict |
private int |
refCount |
private static long |
refCountOffset |
private static long |
serialVersionUID |
private static sun.misc.Unsafe |
unsafe |
COMPARATOR, deserialiserIndex| Constructor and Description |
|---|
UnsafeSharedMemoryBucketEntry(long offset,
int length,
long accessCounter,
boolean inMemory) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
decrementRefCountAndGet() |
protected int |
getRefCount() |
protected int |
incrementRefCountAndGet() |
protected boolean |
isMarkedForEvict() |
protected void |
markForEvict() |
access, deserializerReference, getCachedTime, getLength, getPriority, offset, setDeserialiserReferenceprivate static final long serialVersionUID
private static final sun.misc.Unsafe unsafe
private static final long refCountOffset
private volatile boolean markedForEvict
private volatile int refCount
public UnsafeSharedMemoryBucketEntry(long offset, int length, long accessCounter, boolean inMemory)
protected int getRefCount()
getRefCount in class BucketCache.BucketEntryprotected int incrementRefCountAndGet()
incrementRefCountAndGet in class BucketCache.BucketEntryprotected int decrementRefCountAndGet()
decrementRefCountAndGet in class BucketCache.BucketEntryprotected boolean isMarkedForEvict()
isMarkedForEvict in class BucketCache.BucketEntryprotected void markForEvict()
markForEvict in class BucketCache.BucketEntryCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.