public abstract class AbstractConcurrentOffHeapCache<K,V> extends AbstractConcurrentOffHeapMap<K,V> implements PinnableCache<K,V>
AbstractConcurrentOffHeapMap.AggregateIterator<T>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>segments| Constructor and Description |
|---|
AbstractConcurrentOffHeapCache(Factory<? extends PinnableSegment<K,V>> segmentFactory) |
AbstractConcurrentOffHeapCache(Factory<? extends Segment<K,V>> segmentFactory,
int concurrency) |
| Modifier and Type | Method and Description |
|---|---|
V |
fill(K key,
V value)
See
OffHeapHashMap.fill(Object, Object) for a detailed description. |
V |
getAndPin(K key) |
boolean |
isPinned(Object key) |
V |
putPinned(K key,
V value) |
protected PinnableSegment<K,V> |
segmentFor(Object key) |
void |
setPinning(K key,
boolean pinned) |
boolean |
shrink() |
boolean |
shrinkOthers(int excludedHash) |
clear, 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 AbstractConcurrentOffHeapCache(Factory<? extends PinnableSegment<K,V>> segmentFactory)
public V fill(K key, V value)
AbstractConcurrentOffHeapMapOffHeapHashMap.fill(Object, Object) for a detailed description.fill in class AbstractConcurrentOffHeapMap<K,V>key - key with which the specified value is to be associatedvalue - value to be associated with the specified keypublic V putPinned(K key, V value)
putPinned in interface PinnableCache<K,V>public boolean isPinned(Object key)
isPinned in interface PinnableCache<K,V>public void setPinning(K key, boolean pinned)
setPinning in interface PinnableCache<K,V>protected PinnableSegment<K,V> segmentFor(Object key)
segmentFor in class AbstractConcurrentOffHeapMap<K,V>public boolean shrink()
public boolean shrinkOthers(int excludedHash)
Copyright © 2015–2024. All rights reserved.