K - the type of keys maintained by this cacheV - the type of mapped valuespublic class ConcurrentWriteLockedOffHeapClockCache<K,V> extends AbstractConcurrentOffHeapCache<K,V>
This implementation uses instances of WriteLockedOffHeapClockCache for
its segments.
WriteLockedOffHeapClockCacheAbstractConcurrentOffHeapMap.AggregateIterator<T>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>segments| Constructor and Description |
|---|
ConcurrentWriteLockedOffHeapClockCache(PageSource tableSource,
Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)
Creates a cache using the given table buffer source and storage engine
factory.
|
ConcurrentWriteLockedOffHeapClockCache(PageSource tableSource,
Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory,
EvictionListener<K,V> evictionListener)
Creates a cache using the given table buffer source and storage engine
factory.
|
ConcurrentWriteLockedOffHeapClockCache(PageSource tableSource,
Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory,
EvictionListener<K,V> evictionListener,
long tableSize,
int concurrency)
Creates a cache using the given table buffer source, storage engine
factory, initial table size, and concurrency.
|
ConcurrentWriteLockedOffHeapClockCache(PageSource tableSource,
Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory,
long tableSize,
int concurrency)
Creates a cache using the given table buffer source, storage engine
factory, initial table size, and concurrency.
|
fill, getAndPin, isPinned, putPinned, segmentFor, setPinning, shrink, shrinkOthersclear, computeIfAbsentWithMetadata, computeIfPresentWithMetadata, computeWithMetadata, containsKey, containsValue, destroy, entrySet, fill, get, getAllocatedMemory, getAndSetMetadata, getConcurrency, getDataAllocatedMemory, getDataOccupiedMemory, getDataSize, getDataVitalMemory, getIndexFor, getMetadata, getOccupiedMemory, getRemovedSlotCount, getReprobeLength, getSegmentInternals, getSegments, getSize, getTableCapacity, getUsedSlotCount, getValueAndSetMetadata, getVitalMemory, handleOversizeMappingException, keySet, put, put, putIfAbsent, readLockAll, readUnlockAll, remove, remove, removeAllWithHash, removeNoReturn, replace, replace, segmentFor, size, values, writeLockAll, writeUnlockAllclone, equals, hashCode, isEmpty, putAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic ConcurrentWriteLockedOffHeapClockCache(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)
tableSource - buffer source from which hash tables are allocatedstorageEngineFactory - factory for the segment storage enginespublic ConcurrentWriteLockedOffHeapClockCache(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, EvictionListener<K,V> evictionListener)
tableSource - buffer source from which hash tables are allocatedstorageEngineFactory - factory for the segment storage enginesevictionListener - listener notified on evictionspublic ConcurrentWriteLockedOffHeapClockCache(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, long tableSize, int concurrency)
tableSource - buffer source from which hash tables are allocatedstorageEngineFactory - factory for the segment storage enginestableSize - initial table size (summed across all segments)concurrency - number of segmentspublic ConcurrentWriteLockedOffHeapClockCache(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, EvictionListener<K,V> evictionListener, long tableSize, int concurrency)
tableSource - buffer source from which hash tables are allocatedstorageEngineFactory - factory for the segment storage enginesevictionListener - listener notified on evictionstableSize - initial table size (summed across all segments)concurrency - number of segmentsCopyright © 2015–2024. All rights reserved.