Uses of Class
org.cache2k.core.Entry
-
Packages that use Entry Package Description org.cache2k.core org.cache2k.core.eviction org.cache2k.core.timing -
-
Uses of Entry in org.cache2k.core
Fields in org.cache2k.core declared as Entry Modifier and Type Field Description Entry<K,V>CompactEntry. anotherHash implementation: Link to another entry in the same hash table slot when the hash code collides.EntryEntry. nextLru list: pointer to next element or list headstatic EntryEntryAction. NON_FRESH_DUMMYEntryEntry. prevLru list: pointer to previous element or list headMethods in org.cache2k.core with type parameters of type Entry Modifier and Type Method Description static <E extends Entry>
EEntry. insertIntoTailCyclicList(E head, E e)static <E extends Entry>
EEntry. removeFromCyclicList(E head, E e)Methods in org.cache2k.core that return Entry Modifier and Type Method Description Entry<K,V>[]Hash2. getEntries()Entry table used by the iterator.protected Entry<K,V>HeapCache. getEntryInternal(K key)protected Entry<K,V>HeapCache. getEntryInternal(K key, int hc, int val)Entry<K,V>[]HeapCache. getHashEntries()protected Entry<K,V>HeapCache. insertNewEntry(K key, int hc, int val)Insert new entry in all structures (hash and eviction).Entry<K,V>Hash2. insertWithinLock(Entry<K,V> e, int hash, int keyValue)Insert an entry.protected Entry<K,V>HeapCache. loadAndReplace(K key)Always fetch the value from the source.Entry<K,V>Hash2. lookup(K key, int hash, int keyValue)Lookup the entry in the hash table and return it.protected Entry<K,V>HeapCache. lookupEntry(K key)protected Entry<K,V>HeapCache. lookupEntry(K key, int hc, int val)protected Entry<K,V>HeapCache. lookupEntryNoHitRecord(K key)protected Entry<K,V>HeapCache. lookupEntryNoHitRecord(K key, int hc, int val)protected Entry<K,V>HeapCache. lookupOrNewEntry(K key)Lookup or create a new entry.protected Entry<K,V>HeapCache. lookupOrNewEntry(K key, int hc, int val)protected Entry<K,V>HeapCache. lookupOrNewEntryNoHitRecord(K key)Entry<K,V>ConcurrentEntryIterator. next()protected Entry<K,V>HeapCache. peekEntryInternal(K key)Return the entry, if it is in the cache, without invoking the cache source.protected Entry<K,V>HeapCache. peekEntryInternal(K key, int hc, int val)static EntryEntry. removeFromCyclicList(Entry e)EntryEntry. shortCircuit()Methods in org.cache2k.core with parameters of type Entry Modifier and Type Method Description static booleanEntry. checkCyclicListIntegrity(Entry e)protected abstract <R> EntryAction<K,V,R>BaseCache. createEntryAction(K key, Entry<K,V> e, Semantic<K,V,R> op)protected <R> EntryAction<K,V,R>HeapCache. createEntryAction(K key, Entry<K,V> e, Semantic<K,V,R> op)protected <R> EntryAction<K,V,R>WiredCache. createEntryAction(K key, Entry<K,V> e, Semantic<K,V,R> op)protected abstract <R> EntryAction<K,V,R>BaseCache. createFireAndForgetAction(Entry<K,V> e, Semantic<K,V,R> op)protected <R> org.cache2k.core.HeapCache.MyEntryAction<R>HeapCache. createFireAndForgetAction(Entry<K,V> e, Semantic<K,V,R> op)protected <R> org.cache2k.core.WiredCache.MyEntryAction<R>WiredCache. createFireAndForgetAction(Entry<K,V> e, Semantic<K,V,R> op)protected <R> RBaseCache. execute(K key, Entry<K,V> e, Semantic<K,V,R> op)protected voidHeapCache. expireEntry(Entry<K,V> e)protected voidHeapCache. finishLoadOrEviction(Entry<K,V> e, long nextRefreshTime)static intEntry. getCyclicListEntryCount(Entry e)voidEntryAction. heapHit(Entry<K,V> e)protected voidHeapCache. insert(Entry<K,V> e, V value, long t0, long t, long refreshTime, byte updateStatistics, long nextRefreshTime)static voidEntry. insertInList(Entry head, Entry e)protected voidHeapCache. insertOrUpdateAndCalculateExpiry(Entry<K,V> e, V v, long t0, long t, long refreshTime, byte updateStatistics)Calculate the next refresh time if a timer / expiry is needed and call insert.Entry<K,V>Hash2. insertWithinLock(Entry<K,V> e, int hash, int keyValue)Insert an entry.KHeapCache. keyObjFromEntry(Entry<K,V> e)Either returns the stored key object or the integer object created from the hashCode field.IntegerIntHeapCache. keyObjFromEntry(Entry<Integer,V> e)protected booleanHash2. keyObjIsEqual(K key, Entry e)protected voidHeapCache. load(Entry<K,V> e)voidWiredCache. onEvictionFromHeap(Entry<K,V> e)Calls eviction listeners.protected voidHeapCache. putValue(Entry<K,V> e, V value)Update the value directly within entry lock.protected voidHeapCache. recordHit(Entry e)Increment the hit counter, because entry was accessed.booleanHash2. remove(Entry<K,V> e)Remove existing entry from the hash.protected booleanHeapCache. removeEntry(Entry<K,V> e)Remove the entry from the hash and the replacement list.voidHeapCache. removeEntryForEviction(Entry<K,V> e)Remove the entry from the hash table.static EntryEntry. removeFromCyclicList(Entry e)static voidEntry. removeFromList(Entry e)booleanHash2. removeWithinLock(Entry<K,V> e, int hash)protected VHeapCache. returnValue(Entry<K,V> e)intHeapCache. spreadedHashFromEntry(Entry e)intIntHeapCache. spreadedHashFromEntry(Entry e)voidHeapCache. startRefreshProbationTimer(Entry<K,V> e, long nextRefreshTime)booleanSegmentedEviction. submitWithoutTriggeringEviction(Entry e)voidHeapCache. timerEventExpireEntry(Entry<K,V> e, Object task)voidWiredCache. timerEventExpireEntry(Entry<K,V> e, Object task)If not expired yet, negate time to enforce time checks, schedule task for expiry otherwise.voidHeapCache. timerEventProbationTerminated(Entry<K,V> e, Object task)voidWiredCache. timerEventProbationTerminated(Entry<K,V> e, Object task)voidHeapCache. timerEventRefresh(Entry<K,V> e, Object task)voidWiredCache. timerEventRefresh(Entry<K,V> e, Object task)Starts a refresh operation or expires if no threads in the loader thread pool are available.booleanSegmentedEviction. updateWeight(Entry e)Constructors in org.cache2k.core with parameters of type Entry Constructor Description EntryAction(HeapCache<K,V> heapCache, InternalCache<K,V> userCache, Semantic<K,V,R> op, K k, Entry<K,V> e)EntryAction(HeapCache<K,V> heapCache, InternalCache<K,V> internalCache, Semantic<K,V,R> op, K k, Entry<K,V> e, EntryAction.CompletedCallback<K,V,R> cb)ExceptionWrapper(K key, Throwable exception, long loadTime, Entry e, org.cache2k.io.ExceptionPropagator<K,V> p)Take over exception information from the entry, which either has no exception, an existing cached exception or a suppressed exception. -
Uses of Entry in org.cache2k.core.eviction
Methods in org.cache2k.core.eviction that return Entry Modifier and Type Method Description protected abstract EntryAbstractEviction. findEvictionCandidate()Find a candidate for eviction.protected EntryClockProPlusEviction. findEvictionCandidate()Runs cold hand an in turn hot hand to find eviction candidate.protected EntryRandomEviction. findEvictionCandidate()Entry<K,V>[]HeapCacheForEviction. getHashEntries()Hash table entry array, used only by random eviction.Methods in org.cache2k.core.eviction with parameters of type Entry Modifier and Type Method Description protected abstract voidAbstractEviction. insertIntoReplacementList(Entry e)Place the entry as a new entry into the eviction data structures.protected voidClockProPlusEviction. insertIntoReplacementList(Entry e)protected voidRandomEviction. insertIntoReplacementList(Entry e)voidInternalEvictionListener. onEvictionFromHeap(Entry<K,V> e)voidHeapCacheForEviction. removeEntryForEviction(Entry<K,V> e)After removing the entry from the eviction data structure, remove it from the hash table.protected abstract voidAbstractEviction. removeFromReplacementList(Entry e)Remove entry from the eviction data structures, because it was evicted or deleted.protected voidClockProPlusEviction. removeFromReplacementList(Entry e)Remove, expire or eviction of an entry happens.protected voidRandomEviction. removeFromReplacementList(Entry e)protected voidAbstractEviction. removeFromReplacementListOnEvict(Entry e)Identical toAbstractEviction.removeFromReplacementList(Entry)by default but allows the eviction algorithm to do additional bookkeeping of eviction history.voidClockProPlusEviction. removeFromReplacementListOnEvict(Entry e)Track the entry on the ghost list and call the usual remove procedure.booleanAbstractEviction. submitWithoutTriggeringEviction(Entry e)booleanEviction. submitWithoutTriggeringEviction(Entry e)Submit to eviction for inserting or removing from the replacement list.protected voidAbstractEviction. updateAccumulatedWeightInLock(Entry e)Update total weight in this eviction segment.protected voidAbstractEviction. updateTotalWeightForRemove(Entry e)Called upon eviction or deletionbooleanAbstractEviction. updateWeight(Entry e)booleanEviction. updateWeight(Entry e)Updates the weight on the entry and recalculates the total weight if needed.booleanRandomEviction. updateWeight(Entry e) -
Uses of Entry in org.cache2k.core.timing
Methods in org.cache2k.core.timing with parameters of type Entry Modifier and Type Method Description longStaticTiming. cacheExceptionUntil(Entry<K,V> e, org.cache2k.io.LoadExceptionInfo inf)abstract longTiming. cacheExceptionUntil(Entry<K,V> e, org.cache2k.io.LoadExceptionInfo inf)Delegated to the resilience policylongStaticTiming. calculateNextRefreshTime(Entry<K,V> e, V value, long loadTime)abstract longTiming. calculateNextRefreshTime(Entry<K,V> e, V value, long loadTime)Calculates the expiry time for a value that was just loaded or inserted into the cache.voidStaticTiming. cancelExpiryTimer(Entry<K,V> e)voidTiming. cancelExpiryTimer(Entry<K,V> e)Cancel the timer on the entry, if a timer was set.voidStaticTiming. scheduleFinalTimerForSharpExpiry(Entry<K,V> e)voidTiming. scheduleFinalTimerForSharpExpiry(Entry<K,V> e)Schedule second timer event for the expiry tie if sharp expiry is switched on.booleanStaticTiming. startRefreshProbationTimer(Entry<K,V> e, long nextRefreshTime)booleanTiming. startRefreshProbationTimer(Entry<K,V> e, long nextRefreshTime)Start probation timer.longStaticTiming. stopStartTimer(long expiryTime, Entry<K,V> e)Calculate the needed timer value, which depends on the setting of sharpExpiry and refreshAhead.longTiming. stopStartTimer(long expiryTime, Entry<K,V> e)Convert expiry value to the entry field value, essentially maps 0 toEXPIREDsince 0 is a virgin entry.longStaticTiming. suppressExceptionUntil(Entry<K,V> e, org.cache2k.io.LoadExceptionInfo inf)abstract longTiming. suppressExceptionUntil(Entry<K,V> e, org.cache2k.io.LoadExceptionInfo inf)Delegated to the resilience policyvoidTimerEventListener. timerEventExpireEntry(Entry<K,V> e, Object task)Called by the timer when an entry is expired or before actual expiry when the entry needs to switch into sharp expiry mode.voidTimerEventListener. timerEventProbationTerminated(Entry<K,V> e, Object task)voidTimerEventListener. timerEventRefresh(Entry<K,V> e, Object task)The entry should be refreshed.
-