Package one.nio.mem

Class OffheapMap<K,V>

java.lang.Object
one.nio.mem.OffheapMap<K,V>
All Implemented Interfaces:
OffheapMapMXBean
Direct Known Subclasses:
OffheapBlobMap, SharedMemoryMap

public abstract class OffheapMap<K,V> extends Object implements OffheapMapMXBean
  • Field Details

    • log

      protected static final org.slf4j.Logger log
    • unsafe

      protected static final sun.misc.Unsafe unsafe
    • byteArrayOffset

      protected static final long byteArrayOffset
    • MB

      protected static final long MB
      See Also:
    • CONCURRENCY_LEVEL

      protected static final int CONCURRENCY_LEVEL
      See Also:
    • HASH_OFFSET

      protected static final int HASH_OFFSET
      See Also:
    • NEXT_OFFSET

      protected static final int NEXT_OFFSET
      See Also:
    • TIME_OFFSET

      protected static final int TIME_OFFSET
      See Also:
    • HEADER_SIZE

      protected static final int HEADER_SIZE
      See Also:
    • capacity

      protected final int capacity
    • count

      protected final AtomicInteger count
    • expirations

      protected final AtomicLong expirations
    • locks

      protected final RWLock[] locks
    • mapBase

      protected long mapBase
    • timeToLive

      protected long timeToLive
    • minTimeToLive

      protected long minTimeToLive
    • lockWaitTime

      protected long lockWaitTime
    • cleanupInterval

      protected long cleanupInterval
    • cleanupThreshold

      protected double cleanupThreshold
    • maxSamples

      protected int maxSamples
    • cleanupThread

      protected OffheapMap<K,V>.BasicCleanup cleanupThread
  • Constructor Details

    • OffheapMap

      protected OffheapMap(int capacity)
    • OffheapMap

      protected OffheapMap(int capacity, long address)
  • Method Details