Class MemtablePool.SubPool

  • Enclosing class:
    MemtablePool

    public class MemtablePool.SubPool
    extends java.lang.Object
    Note the difference between acquire() and allocate(); allocate() makes more resources available to all owners, and acquire() makes shared resources unavailable but still recorded. An Owner must always acquire resources, but only needs to allocate if there are none already available. This distinction is not always meaningful.
    • Field Detail

      • limit

        public final long limit
      • cleanThreshold

        public final float cleanThreshold
    • Constructor Detail

      • SubPool

        public SubPool​(long limit,
                       float cleanThreshold)
    • Method Detail

      • used

        public long used()
      • getReclaiming

        public long getReclaiming()
      • reclaimingRatio

        public float reclaimingRatio()
      • usedRatio

        public float usedRatio()
      • blockedTimerContext

        public com.codahale.metrics.Timer.Context blockedTimerContext()