public class ClockCache<K,T> extends LockFreeCache<org.cache2k.impl.ClockCache.Entry,K,T>
BaseCache.Info, BaseCache.MyTimerTask, BaseCache.TunablebulkCacheSource, bulkGetCnt, clearedTime, entryExpiryCalculator, evictedButInHashCnt, evictedCnt, evictionNeeded, exceptionExpiryCalculator, exceptionMaxLinger, experimentalBulkCacheSource, expiredKeptCnt, expiredRemoveCnt, fetchButHitCnt, fetchCnt, fetchExceptionCnt, fetchMillis, hashSeed, info, internalExceptionCnt, keyMutationCount, keyType, loadHitCnt, loadMissCnt, loadNonFreshAndFetchedCnt, loadNonFreshCnt, lock, mainHash, mainHashCtrl, manager, maximumBulkFetchSize, maxLinger, maxSize, name, newEntryCnt, peekHitNotFreshCnt, peekMissCnt, putCnt, putNewEntryCnt, refreshCnt, refreshHash, refreshHashCtrl, refreshHitCnt, refreshPool, refreshSubmitFailedCnt, removedCnt, shutdownInitiated, shutdownWaitFuture, source, startedTime, storage, suppressedExceptionCnt, timer, timerCancelCount, timerService, touchedTime, TUNABLE, valueType, virginEvictCnt, waitForClear| Constructor and Description |
|---|
ClockCache() |
| Modifier and Type | Method and Description |
|---|---|
protected org.cache2k.impl.ClockCache.Entry |
findEvictionCandidate()
Run to evict an entry.
|
protected String |
getExtraStatistics() |
long |
getHitCnt() |
protected IntegrityState |
getIntegrityState() |
protected void |
initializeHeapCache() |
protected void |
insertIntoReplacementList(org.cache2k.impl.ClockCache.Entry e)
New cache entry, put it in the replacement algorithm structure
|
protected org.cache2k.impl.ClockCache.Entry |
newEntry()
Entry object factory.
|
protected void |
recordHit(org.cache2k.impl.ClockCache.Entry e)
Record an entry hit.
|
protected void |
removeEntryFromReplacementList(org.cache2k.impl.ClockCache.Entry e) |
lookupEntryUnsynchronized, lookupOrNewEntrySynchronizedcalcNextRefreshTime, calculateHashEntryCount, checkClosed, checkCyclicListIntegrity, checkForGhost, checkIntegrity, clear, clearLocalCache, clearTimingStatistics, close, conditionallyStartProcess, contains, destroy, evictEventually, expireEntry, fetch, fetchFromSource, fetchWithStorage, flush, get, getAll, getAll, getBulk, getCompleteName, getCyclicListEntryCount, getEntry, getEntryInternal, getExpiredCnt, getFetchesBecauseOfNewEntries, getFetchesInFlight, getInfo, getLatestInfo, getListEntryCount, getLocalSize, getLog, getName, getStorage, getTotalEntryCount, hasBackgroundRefreshAndServesExpiredValues, hasKeepAfterExpired, hasSharpTimeout, hasSuppressExceptions, init, insert, insert, insertAfterHeadCyclicList, insertEntryFromStorage, insertEntryFromStorage, insertFetched, insertInList, insertIntoHeadCyclicList, insertIntoTailCyclicList, insertOnPut, isClosed, iterateAllHeapEntries, iterateLocalAndStorage, iterator, lockAndRunForPurge, lookupEntry, lookupEntrySynchronized, modifiedHash, moveToFront, newEntry, peek, peekEntry, peekEntryInternal, prefetch, prefetch, prefetch, purge, put, putIfAbsent, remove, removeAllAtOnce, removeEntry, removeFromCyclicList, removeFromCyclicList, removeFromList, removeWithFlag, resetStorage, returnEntry, returnValue, setBulkCacheSource, setCacheConfig, setCacheManager, setEntryExpiryCalculator, setExceptionExpiryCalculator, setExperimentalBulkCacheSource, setExpirySeconds, setFeatureBit, setName, setRefreshController, setSource, setSource, stopStartTimer, timerEvent, toString, updateShutdownWaitFuturepublic ClockCache()
public long getHitCnt()
getHitCnt in class BaseCache<org.cache2k.impl.ClockCache.Entry,K,T>protected void initializeHeapCache()
initializeHeapCache in class BaseCache<org.cache2k.impl.ClockCache.Entry,K,T>protected void removeEntryFromReplacementList(org.cache2k.impl.ClockCache.Entry e)
removeEntryFromReplacementList in class BaseCache<org.cache2k.impl.ClockCache.Entry,K,T>protected void recordHit(org.cache2k.impl.ClockCache.Entry e)
BaseCacherecordHit in class BaseCache<org.cache2k.impl.ClockCache.Entry,K,T>protected void insertIntoReplacementList(org.cache2k.impl.ClockCache.Entry e)
BaseCacheinsertIntoReplacementList in class BaseCache<org.cache2k.impl.ClockCache.Entry,K,T>protected org.cache2k.impl.ClockCache.Entry newEntry()
BaseCachenewEntry in class BaseCache<org.cache2k.impl.ClockCache.Entry,K,T>protected org.cache2k.impl.ClockCache.Entry findEvictionCandidate()
findEvictionCandidate in class BaseCache<org.cache2k.impl.ClockCache.Entry,K,T>protected IntegrityState getIntegrityState()
getIntegrityState in class BaseCache<org.cache2k.impl.ClockCache.Entry,K,T>protected String getExtraStatistics()
getExtraStatistics in class BaseCache<org.cache2k.impl.ClockCache.Entry,K,T>cache2k API documentation. Copyright © 2000–2015 headissue GmbH, Munich.