org.terracotta.offheapstore.eviction
Class EvictionListeningReadWriteLockedOffHeapClockCache<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.terracotta.offheapstore.OffHeapHashMap<K,V>
org.terracotta.offheapstore.AbstractLockedOffHeapHashMap<K,V>
org.terracotta.offheapstore.AbstractOffHeapClockCache<K,V>
org.terracotta.offheapstore.ReadWriteLockedOffHeapClockCache<K,V>
org.terracotta.offheapstore.eviction.EvictionListeningReadWriteLockedOffHeapClockCache<K,V>
- All Implemented Interfaces:
- ConcurrentMap<K,V>, ReadWriteLock, Map<K,V>, MapInternals, PinnableCache<K,V>, PinnableSegment<K,V>, Segment<K,V>, StorageEngine.Owner
public class EvictionListeningReadWriteLockedOffHeapClockCache<K,V>
- extends ReadWriteLockedOffHeapClockCache<K,V>
- Author:
- Chris Dennis
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Fields inherited from class org.terracotta.offheapstore.OffHeapHashMap |
ENTRY_SIZE, hashtable, hashTablePage, modCount, removedSlots, reprobeLimit, RESERVED_STATUS_BITS, size, STATUS, STATUS_USED, storageEngine, tableSource |
|
Method Summary |
boolean |
evict(int index,
boolean shrink)
|
| Methods inherited from class org.terracotta.offheapstore.AbstractLockedOffHeapHashMap |
clear, containsKey, destroy, entrySet, fill, fill, get, getAndSetMetadata, getEncodingForHashAndBinary, installMappingForHashAndEncoding, keySet, put, put, putIfAbsent, remove, remove, removeMapping, removeNoReturn, replace, replace, setMetadata, shrink, size, values |
| Methods inherited from class org.terracotta.offheapstore.OffHeapHashMap |
added, encodingSet, fill, getAllocatedMemory, getAtTableOffset, getDataAllocatedMemory, getDataOccupiedMemory, getDataSize, getDataVitalMemory, getEntryAtTableOffset, getMetadata, getOccupiedMemory, getRemovedSlotCount, getReprobeLength, getSize, getSlotForHashAndEncoding, getStorageEngine, getTableCapacity, getUsedSlotCount, getVitalMemory, isAvailable, isPresent, isRemoved, isTerminating, isThiefForTableAllocations, removeAtTableOffset, removed, spread, tryIncreaseReprobe, updated, updateEncoding, updateMetadata |
| Methods inherited from interface org.terracotta.offheapstore.MapInternals |
getAllocatedMemory, getDataAllocatedMemory, getDataOccupiedMemory, getDataSize, getDataVitalMemory, getOccupiedMemory, getRemovedSlotCount, getReprobeLength, getSize, getTableCapacity, getUsedSlotCount, getVitalMemory |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
EvictionListeningReadWriteLockedOffHeapClockCache
public EvictionListeningReadWriteLockedOffHeapClockCache(EvictionListener<K,V> listener,
PageSource source,
StorageEngine<? super K,? super V> storageEngine)
EvictionListeningReadWriteLockedOffHeapClockCache
public EvictionListeningReadWriteLockedOffHeapClockCache(EvictionListener<K,V> listener,
PageSource source,
StorageEngine<? super K,? super V> storageEngine,
int tableSize)
evict
public boolean evict(int index,
boolean shrink)
- Specified by:
evict in interface StorageEngine.Owner- Overrides:
evict in class AbstractOffHeapClockCache<K,V>
Copyright © 2015. All Rights Reserved.