public abstract class SoftLongObjectCacheBase<V> extends LongObjectCacheBase<V>
LongObjectCacheBase.CriticalSection| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SIZE |
static int |
MIN_SIZE |
size| Constructor and Description |
|---|
SoftLongObjectCacheBase() |
SoftLongObjectCacheBase(int cacheSize) |
| Modifier and Type | Method and Description |
|---|---|
V |
cacheObject(long key,
V value) |
void |
clear() |
int |
count() |
V |
getObject(long key) |
void |
lock() |
protected abstract @NotNull LongObjectCacheBase<V> |
newChunk(int chunkSize) |
LongObjectCacheBase.CriticalSection |
newCriticalSection() |
V |
remove(long key) |
V |
tryKey(long key) |
void |
unlock() |
adjustHitRate, containsKey, get, isCached, isEmpty, put, size, tryKeyLockedclose, getAttempts, getCacheAdjuster, getHits, hitRate, incAttempts, incHits, setAttempts, setHitspublic static final int DEFAULT_SIZE
public static final int MIN_SIZE
public SoftLongObjectCacheBase()
public SoftLongObjectCacheBase(int cacheSize)
public void clear()
clear in class LongObjectCacheBase<V>public void lock()
lock in class LongObjectCacheBase<V>public void unlock()
unlock in class LongObjectCacheBase<V>public V tryKey(long key)
tryKey in class LongObjectCacheBase<V>public V getObject(long key)
getObject in class LongObjectCacheBase<V>public V cacheObject(long key, @NotNull V value)
cacheObject in class LongObjectCacheBase<V>public V remove(long key)
remove in class LongObjectCacheBase<V>public int count()
count in class LongObjectCacheBase<V>public LongObjectCacheBase.CriticalSection newCriticalSection()
newCriticalSection in class LongObjectCacheBase<V>@NotNull protected abstract @NotNull LongObjectCacheBase<V> newChunk(int chunkSize)