public abstract class LockFreeCache<E extends Entry,K,T> extends BaseCache<E,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 |
|---|
LockFreeCache() |
| Modifier and Type | Method and Description |
|---|---|
protected E |
lookupEntryUnsynchronized(K key,
int hc)
Implement unsynchronized lookup if it is supported by the eviction.
|
protected E |
lookupOrNewEntrySynchronized(K key)
First lookup in the hash unsynchronized, if missed, do synchronize and
try again.
|
calcNextRefreshTime, calculateHashEntryCount, checkClosed, checkCyclicListIntegrity, checkForGhost, checkIntegrity, clear, clearLocalCache, clearTimingStatistics, close, conditionallyStartProcess, contains, destroy, evictEventually, expireEntry, fetch, fetchFromSource, fetchWithStorage, findEvictionCandidate, flush, get, getAll, getAll, getBulk, getCompleteName, getCyclicListEntryCount, getEntry, getEntryInternal, getExpiredCnt, getExtraStatistics, getFetchesBecauseOfNewEntries, getFetchesInFlight, getHitCnt, getInfo, getIntegrityState, getLatestInfo, getListEntryCount, getLocalSize, getLog, getName, getStorage, getTotalEntryCount, hasBackgroundRefreshAndServesExpiredValues, hasKeepAfterExpired, hasSharpTimeout, hasSuppressExceptions, init, initializeHeapCache, insert, insert, insertAfterHeadCyclicList, insertEntryFromStorage, insertEntryFromStorage, insertFetched, insertInList, insertIntoHeadCyclicList, insertIntoReplacementList, insertIntoTailCyclicList, insertOnPut, isClosed, iterateAllHeapEntries, iterateLocalAndStorage, iterator, lockAndRunForPurge, lookupEntry, lookupEntrySynchronized, modifiedHash, moveToFront, newEntry, newEntry, peek, peekEntry, peekEntryInternal, prefetch, prefetch, prefetch, purge, put, putIfAbsent, recordHit, remove, removeAllAtOnce, removeEntry, removeEntryFromReplacementList, removeFromCyclicList, removeFromCyclicList, removeFromList, removeWithFlag, resetStorage, returnEntry, returnValue, setBulkCacheSource, setCacheConfig, setCacheManager, setEntryExpiryCalculator, setExceptionExpiryCalculator, setExperimentalBulkCacheSource, setExpirySeconds, setFeatureBit, setName, setRefreshController, setSource, setSource, stopStartTimer, timerEvent, toString, updateShutdownWaitFuturepublic LockFreeCache()
protected final E lookupOrNewEntrySynchronized(K key)
protected final E lookupEntryUnsynchronized(K key, int hc)
BaseCachecache2k API documentation. Copyright © 2000–2015 headissue GmbH, Munich.