public abstract class SoftLongObjectCacheBase<V>
extends jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SIZE |
static int |
MIN_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 jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V> |
newChunk(int chunkSize) |
V |
remove(long key) |
V |
tryKey(long key) |
void |
unlock() |
adjustHitRate, cacheObjectLocked, containsKey, get, getObjectLocked, isCached, isEmpty, put, removeLocked, 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 jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V>public void lock()
lock in class jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V>public void unlock()
unlock in class jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V>public V tryKey(long key)
tryKey in class jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V>public V getObject(long key)
getObject in class jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V>public V cacheObject(long key, @NotNull V value)
cacheObject in class jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V>public V remove(long key)
remove in class jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V>public int count()
count in class jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V>@NotNull protected abstract @NotNull jetbrains.exodus.core.dataStructures.LongObjectCacheBase<V> newChunk(int chunkSize)