cachedValue, key, loader, lock, ttlInMs| Constructor and Description |
|---|
ConcurrentCacheAtomWithStats(K key,
Mapper<K,V> loader,
long ttlInMs,
CacheStats stats) |
| Modifier and Type | Method and Description |
|---|---|
AtomicLong |
getErrors() |
AtomicLong |
getHits() |
AtomicLong |
getMisses() |
String |
toString() |
protected void |
updateStats(boolean missed,
boolean hasError) |
call, get, getIfExists, invalidate, setpublic ConcurrentCacheAtomWithStats(K key, Mapper<K,V> loader, long ttlInMs, CacheStats stats)
protected void updateStats(boolean missed,
boolean hasError)
updateStats in class ConcurrentCacheAtom<K,V>public AtomicLong getHits()
public AtomicLong getMisses()
public AtomicLong getErrors()
public String toString()
toString in class ConcurrentCacheAtom<K,V>Copyright © 2014–2018 Nikolche Mihajlovski and contributors. All rights reserved.