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