Package one.nio.mem
Class SharedMemoryBlobMap
java.lang.Object
one.nio.mem.OffheapMap<Long,byte[]>
one.nio.mem.SharedMemoryMap<Long,byte[]>
one.nio.mem.SharedMemoryLongMap<byte[]>
one.nio.mem.SharedMemoryBlobMap
- All Implemented Interfaces:
OffheapMapMXBean,SharedMemoryMapMXBean
-
Nested Class Summary
Nested classes/interfaces inherited from class one.nio.mem.OffheapMap
OffheapMap.BasicCleanup, OffheapMap.Record<K,V>, OffheapMap.SamplingCleanup, OffheapMap.Visitor<K, V>, OffheapMap.WritableRecord<K, V>, OffheapMap.WritableVisitor<K, V> -
Field Summary
Fields inherited from class one.nio.mem.SharedMemoryMap
allocator, 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_OFFSETFields inherited from class one.nio.mem.OffheapMap
byteArrayOffset, 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 -
Constructor Summary
ConstructorsConstructorDescriptionSharedMemoryBlobMap(int capacity, String fileName, long fileSize) SharedMemoryBlobMap(int capacity, String fileName, long fileSize, long expirationTime) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetValueAt(long entry, byte[] value) protected intsizeOf(byte[] value) protected byte[]valueAt(long entry) Methods inherited from class one.nio.mem.SharedMemoryLongMap
equalsAt, hashCode, keyAtMethods inherited from class one.nio.mem.SharedMemoryMap
allocateEntry, closeInternal, convert, createAllocator, destroyEntry, entriesToClean, getCustomData, getFreeMemory, getHeader, getTotalMemory, getUsedMemory, headerSize, loadSchema, needCleanup, relocate, setCustomData, setHeader, setSerializer, setSerializer, sizeOf, storeSchemaMethods inherited from class one.nio.mem.OffheapMap
bucketFor, clear, close, get, getCapacity, getCleanupInterval, getCleanupThreshold, getCount, getExpirations, getLockWaitTime, getMaxSamples, getMinTimeToLive, getTimeToLive, isExpired, iterate, iterate, iterate, iterate, iterate, iterate, lockFor, lockRecordForRead, lockRecordForRead, lockRecordForWrite, lockRecordForWrite, put, putIfAbsent, remove, removeExpired, reuseEntry, setCleanupInterval, setCleanupThreshold, setLockWaitTime, setMaxSamples, setMinTimeToLive, setTimeAt, setTimeAt, setTimeToLive, shouldCleanup, timeAt, touchMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.nio.mem.OffheapMapMXBean
getCapacity, getCleanupInterval, getCleanupThreshold, getCount, getExpirations, getLockWaitTime, getMaxSamples, getMinTimeToLive, getTimeToLive, setCleanupInterval, setCleanupThreshold, setLockWaitTime, setMaxSamples, setMinTimeToLive, setTimeToLive
-
Constructor Details
-
SharedMemoryBlobMap
- Throws:
IOException
-
SharedMemoryBlobMap
public SharedMemoryBlobMap(int capacity, String fileName, long fileSize, long expirationTime) throws IOException - Throws:
IOException
-
-
Method Details
-
sizeOf
protected int sizeOf(byte[] value) - Overrides:
sizeOfin classSharedMemoryMap<Long,byte[]>
-
setValueAt
protected void setValueAt(long entry, byte[] value) - Overrides:
setValueAtin classSharedMemoryMap<Long,byte[]>
-
valueAt
protected byte[] valueAt(long entry) - Overrides:
valueAtin classSharedMemoryMap<Long,byte[]>
-