@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, setDeserialiserReference
private 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.BucketEntry
protected int incrementRefCountAndGet()
incrementRefCountAndGet
in class BucketCache.BucketEntry
protected int decrementRefCountAndGet()
decrementRefCountAndGet
in class BucketCache.BucketEntry
protected boolean isMarkedForEvict()
isMarkedForEvict
in class BucketCache.BucketEntry
protected void markForEvict()
markForEvict
in class BucketCache.BucketEntry
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.