public class RandomCache<K,T> extends LockFreeCache<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 |
|---|
RandomCache() |
| Modifier and Type | Method and Description |
|---|---|
protected Entry |
findEvictionCandidate()
Start at arbitrary hash slot and evict the next best entry.
|
long |
getHitCnt() |
protected void |
insertIntoReplacementList(Entry e)
New cache entry, put it in the replacement algorithm structure
|
protected Entry |
newEntry()
Entry object factory.
|
protected void |
recordHit(Entry entry)
Record an entry hit.
|
protected void |
removeEntryFromReplacementList(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, getExtraStatistics, getFetchesBecauseOfNewEntries, getFetchesInFlight, getInfo, getIntegrityState, getLatestInfo, getListEntryCount, getLocalSize, getLog, getName, getStorage, getTotalEntryCount, hasBackgroundRefreshAndServesExpiredValues, hasKeepAfterExpired, hasSharpTimeout, hasSuppressExceptions, init, initializeHeapCache, 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 RandomCache()
protected void recordHit(Entry entry)
BaseCacheprotected void removeEntryFromReplacementList(Entry e)
removeEntryFromReplacementList in class BaseCache<Entry,K,T>protected void insertIntoReplacementList(Entry e)
BaseCacheinsertIntoReplacementList in class BaseCache<Entry,K,T>protected Entry newEntry()
BaseCacheprotected Entry findEvictionCandidate()
findEvictionCandidate in class BaseCache<Entry,K,T>cache2k API documentation. Copyright © 2000–2015 headissue GmbH, Munich.