public class FakeObjectCache<K,V> extends ObjectCacheBase<K,V>
ObjectCacheBase.CriticalSectionDEFAULT_SIZE, MIN_SIZE, size| Constructor and Description |
|---|
FakeObjectCache() |
| Modifier and Type | Method and Description |
|---|---|
V |
cacheObject(K key,
V x) |
void |
clear() |
int |
count() |
int |
getAttempts() |
protected jetbrains.exodus.core.execution.SharedTimer.ExpirablePeriodicTask |
getCacheAdjuster() |
int |
getHits() |
V |
getObject(K key) |
float |
hitRate() |
protected void |
incAttempts() |
protected void |
incHits() |
void |
lock() |
ObjectCacheBase.CriticalSection |
newCriticalSection() |
V |
remove(K key) |
V |
tryKey(K key) |
void |
unlock() |
adjustHitRate, containsKey, formatHitRate, get, isCached, isEmpty, put, size, tryKeyLockedclose, setAttempts, setHitspublic void clear()
clear in class ObjectCacheBase<K,V>public void lock()
lock in class ObjectCacheBase<K,V>public void unlock()
unlock in class ObjectCacheBase<K,V>public V cacheObject(@NotNull K key, @NotNull V x)
cacheObject in class ObjectCacheBase<K,V>public int count()
count in class ObjectCacheBase<K,V>public int getAttempts()
getAttempts in class CacheHitRateablepublic int getHits()
getHits in class CacheHitRateablepublic float hitRate()
hitRate in class CacheHitRateablepublic ObjectCacheBase.CriticalSection newCriticalSection()
newCriticalSection in class ObjectCacheBase<K,V>protected void incAttempts()
incAttempts in class CacheHitRateableprotected void incHits()
incHits in class CacheHitRateable@Nullable protected jetbrains.exodus.core.execution.SharedTimer.ExpirablePeriodicTask getCacheAdjuster()
getCacheAdjuster in class CacheHitRateable