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