public static final class Store.Cache.HardRef extends Store.Cache
Store.Cache.HardRef, Store.Cache.HashTable, Store.Cache.LRU, Store.Cache.WeakSoftRef| Modifier and Type | Field and Description |
|---|---|
protected Store.LongObjectMap |
cache |
protected static int |
CHECK_EVERY_N |
protected int |
counter |
protected ScheduledExecutorService |
executor |
protected long |
executorPeriod |
protected int |
initialCapacity |
cacheHitCounter, cacheMissCounter, lock, NULL| Constructor and Description |
|---|
Store.Cache.HardRef(int initialCapacity,
boolean disableLocks,
ScheduledExecutorService executor,
long executorPeriod) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
Object |
get(long recid) |
Store.Cache |
newCacheForOtherSegment() |
void |
put(long recid,
Object item) |
metricsCacheHit, metricsCacheMissprotected static final int CHECK_EVERY_N
protected int counter
protected final Store.LongObjectMap cache
protected final int initialCapacity
protected final ScheduledExecutorService executor
protected final long executorPeriod
public Store.Cache.HardRef(int initialCapacity,
boolean disableLocks,
ScheduledExecutorService executor,
long executorPeriod)
public Object get(long recid)
get in class Store.Cachepublic void put(long recid,
Object item)
put in class Store.Cachepublic void clear()
clear in class Store.Cachepublic void close()
close in class Store.Cachepublic Store.Cache newCacheForOtherSegment()
newCacheForOtherSegment in class Store.CacheCopyright © 2015. All Rights Reserved.