public class IntHeapCache<V> extends HeapCache<Integer,V> implements org.cache2k.IntCache<V>
CompactEntry.hashCode field and CompactEntry.key is set to null.
Defines methods from IntCache so no autoboxing needs to be done
in the access path.HeapCache.RunWithCatch, HeapCache.TunableclearCnt, clearedTime, clearRemovedCnt, clock, DEFAULT_EXCEPTION_PROPAGATOR, exceptionPropagator, hash, hashSeed, info, internalExceptionCnt, keyMutationCnt, keyType, loader, loaderExecutor, lock, manager, name, prefetchExecutor, startedTime, timing, TUNABLE, valueType| Constructor and Description |
|---|
IntHeapCache() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(int key) |
Hash2<Integer,V> |
createHashTable()
Modified hash table implementation.
|
Integer |
extractIntKeyObj(Integer key)
The key object or null, for integer keyed caches
|
int |
extractIntKeyValue(Integer key,
int hc)
Modified hash code or integer value for integer keyed caches
|
Integer |
extractKeyObj(Entry<Integer,V> e) |
int |
extractModifiedHash(Entry e) |
V |
get(int key) |
V |
peek(int key) |
void |
put(int key,
V value) |
void |
remove(int key) |
cancelTimerJobs, checkAllPresent, checkClosed, checkIntegrity, clear, clearLocalCache, close, closePart1, closePart2, computeIfAbsent, containsAndRemove, containsKey, convertCacheEntry2ValueMap, convertValueMap, createEntryAction, executeWithGlobalLock, expireAt, expireEntry, expireOrScheduleFinalExpireEvent, finishLoadOrEviction, generateKeySet, get, getAll, getCacheManager, getClock, getCommonMetrics, getCompleteName, getEntry, getEntryInternal, getEntryInternal, getEntryState, getInfo, getInfo, getIntegrityState, getKeyType, getLatestInfo, getLatestInfo, getLocalSize, getLog, getName, getPrefetchExecutor, getTotalEntryCount, getValueType, init, initializeHeapCache, initWithoutTimerHandler, insert, insertNewEntry, insertOrUpdateAndCalculateExpiry, invoke, isClosed, isKeepAfterExpired, isNullValuePermitted, isRecordRefreshTime, isRefreshAhead, isRejectNullValues, isUpdateTimeNeeded, iterateAllHeapEntries, iterator, load, loadAll, loadAndReplace, logAndCountInternalException, lookupEntry, lookupEntry, lookupEntryNoHitRecord, lookupEntryNoHitRecord, lookupOrNewEntry, lookupOrNewEntry, lookupOrNewEntryNoHitRecord, modifiedHash, peek, peekAll, peekAndPut, peekAndRemove, peekAndReplace, peekEntry, peekEntryInternal, peekEntryInternal, prefetch, prefetchAll, put, putAll, putIfAbsent, putValue, recordHit, reloadAll, remove, removeEntry, removeEntryForEviction, removeIfEquals, replace, replace, replaceIfEquals, returnCacheEntry, returnCacheEntry, returnEntry, returnNullValueDetectedException, returnValue, returnValue, setAdvancedLoader, setCacheClosedListeners, setCacheConfig, setCacheManager, setClock, setExceptionPropagator, setFeatureBit, setName, setTiming, startRefreshProbationTimer, timerEventExpireEntry, timerEventProbationTerminated, timerEventRefreshasMap, clearAndClose, closeCustomization, createCustomization, entries, execute, execute, execute, getStorage, invokeAll, keys, nameQualifier, removeAll, removeAll, requestInterface, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasMap, clear, clearAndClose, close, computeIfAbsent, containsAndRemove, containsKey, entries, expireAt, get, getAll, getCacheManager, getEntry, getName, invoke, invokeAll, isClosed, keys, loadAll, peek, peekAll, peekAndPut, peekAndRemove, peekAndReplace, peekEntry, prefetch, prefetchAll, put, putAll, putIfAbsent, reloadAll, remove, removeAll, removeAll, removeIfEquals, replace, replaceIfEquals, requestInterface, toStringpublic Integer extractIntKeyObj(Integer key)
HeapCacheextractIntKeyObj in class HeapCache<Integer,V>public int extractIntKeyValue(Integer key, int hc)
HeapCacheextractIntKeyValue in class HeapCache<Integer,V>public int extractModifiedHash(Entry e)
extractModifiedHash in class HeapCache<Integer,V>public Integer extractKeyObj(Entry<Integer,V> e)
extractKeyObj in class HeapCache<Integer,V>public Hash2<Integer,V> createHashTable()
createHashTable in class HeapCache<Integer,V>public boolean containsKey(int key)
containsKey in interface org.cache2k.IntCache<V>public void put(int key,
V value)
put in interface org.cache2k.IntKeyValueStore<V>public void remove(int key)
remove in interface org.cache2k.IntKeyValueStore<V>cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.