public class PersistentObjectCache<K,V> extends CacheHitRateable
| Modifier | Constructor and Description |
|---|---|
|
PersistentObjectCache() |
|
PersistentObjectCache(int size) |
|
PersistentObjectCache(int size,
float secondGenSizeRatio) |
protected |
PersistentObjectCache(@NotNull PersistentObjectCache<K,V> source,
@Nullable EvictListener<K,V> listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheObject(K key,
V x) |
void |
clear() |
int |
count() |
void |
forEachEntry(PairProcedure<K,V> procedure) |
void |
forEachKey(ObjectProcedure<K> procedure) |
V |
get(K key) |
PersistentObjectCache<K,V> |
getClone(@Nullable EvictListener<K,V> listener) |
V |
getObject(K key) |
java.util.Iterator<K> |
keys() |
void |
put(K key,
V x) |
V |
remove(K key) |
int |
size() |
V |
tryKey(K key) |
java.util.Iterator<V> |
values() |
adjustHitRate, close, getAttempts, getCacheAdjuster, getHits, hitRate, incAttempts, incHits, setAttempts, setHitspublic PersistentObjectCache()
public PersistentObjectCache(int size)
public PersistentObjectCache(int size,
float secondGenSizeRatio)
protected PersistentObjectCache(@NotNull
@NotNull PersistentObjectCache<K,V> source,
@Nullable
@Nullable EvictListener<K,V> listener)
public void clear()
public int size()
public int count()
public void forEachKey(ObjectProcedure<K> procedure)
public void forEachEntry(PairProcedure<K,V> procedure)
public java.util.Iterator<K> keys()
public java.util.Iterator<V> values()
public PersistentObjectCache<K,V> getClone(@Nullable @Nullable EvictListener<K,V> listener)