Class MemtablePool.SubPool

java.lang.Object
org.apache.cassandra.utils.memory.MemtablePool.SubPool
Enclosing class:
MemtablePool

public class MemtablePool.SubPool extends 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 Details

    • limit

      public final long limit
    • cleanThreshold

      public final float cleanThreshold
  • Constructor Details

    • SubPool

      public SubPool(long limit, float cleanThreshold)
  • Method Details

    • used

      public long used()
    • getReclaiming

      public long getReclaiming()
    • reclaimingRatio

      public float reclaimingRatio()
    • usedRatio

      public float usedRatio()
    • newAllocator

      public MemtableAllocator.SubAllocator newAllocator()
    • hasRoom

      public WaitQueue hasRoom()
    • blockedTimerContext

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