Class MemtablePool.SubPool
- java.lang.Object
-
- org.apache.cassandra.utils.memory.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 Summary
Fields Modifier and Type Field Description float
cleanThreshold
long
limit
-
Constructor Summary
Constructors Constructor Description SubPool(long limit, float cleanThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.Timer.Context
blockedTimerContext()
long
getReclaiming()
WaitQueue
hasRoom()
MemtableAllocator.SubAllocator
newAllocator()
float
reclaimingRatio()
long
used()
float
usedRatio()
-
-
-
Method Detail
-
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()
-
-