public class ConcurrentObjectCache<K,V> extends ObjectCacheBase<K,V>
ObjectCacheBase.CriticalSectionDEFAULT_SIZE, MIN_SIZE, size| Constructor and Description |
|---|
ConcurrentObjectCache() |
ConcurrentObjectCache(int size) |
ConcurrentObjectCache(int size,
int numberOfGenerations) |
| Modifier and Type | Method and Description |
|---|---|
V |
cacheObject(K key,
V x) |
void |
clear() |
int |
count() |
V |
getObject(K key) |
void |
lock() |
ObjectCacheBase.CriticalSection |
newCriticalSection() |
V |
remove(K key) |
V |
tryKey(K key) |
V |
tryKeyLocked(K key) |
void |
unlock() |
adjustHitRate, containsKey, formatHitRate, get, isCached, isEmpty, put, sizeclose, getAttempts, getCacheAdjuster, getHits, hitRate, incAttempts, incHits, setAttempts, setHitspublic ConcurrentObjectCache()
public ConcurrentObjectCache(int size)
public ConcurrentObjectCache(int size,
int numberOfGenerations)
public V tryKeyLocked(@NotNull K key)
tryKeyLocked in class ObjectCacheBase<K,V>public 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 ObjectCacheBase.CriticalSection newCriticalSection()
newCriticalSection in class ObjectCacheBase<K,V>