public class RandomEviction extends AbstractEviction
correctedMaxSize, heapCache, MAXIMAL_CHUNK_SIZE, maxSize, MINIMAL_CHUNK_SIZE, MINIMUM_CAPACITY_FOR_CHUNKING
Constructor and Description |
---|
RandomEviction(HeapCache _heapCache,
HeapCacheListener _listener,
long _maxSize) |
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity(IntegrityState _integrityState) |
protected Entry |
findEvictionCandidate(Entry _previous) |
String |
getExtraStatistics()
Fragment that the eviction wants to add to the
Cache.toString() output. |
long |
getHitCount()
Number of recorded hits.
|
long |
getSize()
Number of entries in the eviction data structure
|
protected void |
insertIntoReplacementList(Entry e) |
long |
removeAll()
Remove all entries from the eviction data structure.
|
protected void |
removeFromReplacementList(Entry e) |
close, drain, evictEventually, evictEventually, getEvictedCount, getEvictionRunningCount, getExpiredRemovedCount, getMaxSize, getMetrics, getNewEntryCount, getRemovedCount, getVirginRemovedCount, removeFromReplacementListOnEvict, runLocked, start, stop, submit, submitWithoutEviction
public RandomEviction(HeapCache _heapCache, HeapCacheListener _listener, long _maxSize)
protected void removeFromReplacementList(Entry e)
removeFromReplacementList
in class AbstractEviction
protected void insertIntoReplacementList(Entry e)
insertIntoReplacementList
in class AbstractEviction
protected Entry findEvictionCandidate(Entry _previous)
findEvictionCandidate
in class AbstractEviction
public void checkIntegrity(IntegrityState _integrityState)
public long removeAll()
Eviction
public String getExtraStatistics()
EvictionMetrics
Cache.toString()
output.getExtraStatistics
in interface EvictionMetrics
getExtraStatistics
in class AbstractEviction
public long getHitCount()
EvictionMetrics
public long getSize()
EvictionMetrics
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.