public class ClockEviction extends AbstractEviction
correctedMaxSize, heapCache, MAXIMAL_CHUNK_SIZE, maxSize, MINIMAL_CHUNK_SIZE, MINIMUM_CAPACITY_FOR_CHUNKING
Constructor and Description |
---|
ClockEviction(HeapCache _heapCache,
HeapCacheListener _listener,
long _maxSize) |
Modifier and Type | Method and Description |
---|---|
void |
checkIntegrity(IntegrityState _integrityState) |
protected Entry |
findEvictionCandidate(Entry _previous)
Run to evict an entry.
|
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 ClockEviction(HeapCache _heapCache, HeapCacheListener _listener, long _maxSize)
public long getHitCount()
EvictionMetrics
public long removeAll()
Eviction
protected void removeFromReplacementList(Entry e)
removeFromReplacementList
in class AbstractEviction
public long getSize()
EvictionMetrics
protected void insertIntoReplacementList(Entry e)
insertIntoReplacementList
in class AbstractEviction
protected Entry findEvictionCandidate(Entry _previous)
findEvictionCandidate
in class AbstractEviction
public void checkIntegrity(IntegrityState _integrityState)
public String getExtraStatistics()
EvictionMetrics
Cache.toString()
output.getExtraStatistics
in interface EvictionMetrics
getExtraStatistics
in class AbstractEviction
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.