Package one.nio.mem

Class OffheapMap<K,​V>

    • Field Detail

      • log

        protected static final org.slf4j.Logger log
      • unsafe

        protected static final sun.misc.Unsafe unsafe
      • byteArrayOffset

        protected static final long byteArrayOffset
      • capacity

        protected final int capacity
      • count

        protected final java.util.concurrent.atomic.AtomicInteger count
      • expirations

        protected final java.util.concurrent.atomic.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
    • Constructor Detail

      • OffheapMap

        protected OffheapMap​(int capacity)
      • OffheapMap

        protected OffheapMap​(int capacity,
                             long address)