public abstract class SharedMemoryFixedMap<K,V> extends SharedMemoryMap<K,V>
OffheapMap.BasicCleanup, OffheapMap.Record<K,V>, OffheapMap.SamplingCleanup, OffheapMap.Visitor<K,V>, OffheapMap.WritableRecord<K,V>, OffheapMap.WritableVisitor<K,V>| Modifier and Type | Field and Description |
|---|---|
protected FixedSizeAllocator |
allocator |
protected static long |
ALLOCATOR_HEAD_OFFSET |
protected static long |
ALLOCATOR_SIZE_OFFSET |
protected int |
valueSize |
BASE_OFFSET, CAPACITY_OFFSET, className, CUSTOM_DATA_OFFSET, CUSTOM_SIZE_OFFSET, MAP_OFFSET, MAX_CUSTOM_DATA_SIZE, mmap, name, serializer, SIGNATURE_CLEAR, SIGNATURE_DIRTY, SIGNATURE_LEGACY, SIGNATURE_OFFSET, TIMESTAMP_OFFSET, UID_OFFSETbyteArrayOffset, capacity, cleanupInterval, cleanupThread, cleanupThreshold, CONCURRENCY_LEVEL, count, expirations, HASH_OFFSET, HEADER_SIZE, locks, lockWaitTime, log, mapBase, maxSamples, MB, minTimeToLive, NEXT_OFFSET, TIME_OFFSET, timeToLive, unsafe| Modifier | Constructor and Description |
|---|---|
protected |
SharedMemoryFixedMap(String fileName,
long fileSize,
int valueSize) |
protected |
SharedMemoryFixedMap(String fileName,
long fileSize,
int valueSize,
long expirationTime) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
allocateEntry(K key,
long hashCode,
int size) |
protected void |
closeInternal() |
protected void |
createAllocator(long startAddress,
long totalMemory) |
protected void |
destroyEntry(long entry) |
long |
getFreeMemory() |
long |
getTotalMemory() |
long |
getUsedMemory() |
protected void |
loadSchema() |
protected void |
relocate(long delta) |
protected int |
sizeOf(long entry) |
protected int |
sizeOf(V value) |
protected void |
storeSchema() |
convert, entriesToClean, getCustomData, getHeader, headerSize, needCleanup, setCustomData, setHeader, setSerializer, setSerializer, setValueAt, valueAtbucketFor, clear, close, equalsAt, get, getCapacity, getCleanupInterval, getCleanupThreshold, getCount, getExpirations, getLockWaitTime, getMaxSamples, getMinTimeToLive, getTimeToLive, hashCode, isExpired, iterate, iterate, iterate, iterate, iterate, iterate, keyAt, lockFor, lockRecordForRead, lockRecordForRead, lockRecordForWrite, lockRecordForWrite, put, putIfAbsent, remove, removeExpired, setCleanupInterval, setCleanupThreshold, setLockWaitTime, setMaxSamples, setMinTimeToLive, setTimeAt, setTimeAt, setTimeToLive, shouldCleanup, timeAt, touchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapacity, getCleanupInterval, getCleanupThreshold, getCount, getExpirations, getLockWaitTime, getMaxSamples, getMinTimeToLive, getTimeToLive, setCleanupInterval, setCleanupThreshold, setLockWaitTime, setMaxSamples, setMinTimeToLive, setTimeToLiveprotected static final long ALLOCATOR_SIZE_OFFSET
protected static final long ALLOCATOR_HEAD_OFFSET
protected final int valueSize
protected final FixedSizeAllocator allocator
protected SharedMemoryFixedMap(String fileName, long fileSize, int valueSize) throws IOException
IOExceptionprotected SharedMemoryFixedMap(String fileName, long fileSize, int valueSize, long expirationTime) throws IOException
IOExceptionprotected void closeInternal()
closeInternal in class SharedMemoryMap<K,V>protected void createAllocator(long startAddress,
long totalMemory)
createAllocator in class SharedMemoryMap<K,V>protected void loadSchema()
loadSchema in class SharedMemoryMap<K,V>protected void storeSchema()
storeSchema in class SharedMemoryMap<K,V>protected void relocate(long delta)
relocate in class SharedMemoryMap<K,V>protected long allocateEntry(K key, long hashCode, int size)
allocateEntry in class SharedMemoryMap<K,V>protected void destroyEntry(long entry)
destroyEntry in class SharedMemoryMap<K,V>protected int sizeOf(long entry)
sizeOf in class SharedMemoryMap<K,V>protected int sizeOf(V value)
sizeOf in class SharedMemoryMap<K,V>public long getTotalMemory()
getTotalMemory in interface SharedMemoryMapMXBeangetTotalMemory in class SharedMemoryMap<K,V>public long getFreeMemory()
getFreeMemory in interface SharedMemoryMapMXBeangetFreeMemory in class SharedMemoryMap<K,V>public long getUsedMemory()
getUsedMemory in interface SharedMemoryMapMXBeangetUsedMemory in class SharedMemoryMap<K,V>Copyright © 2019. All rights reserved.