Class MemtablePool
java.lang.Object
org.apache.cassandra.utils.memory.MemtablePool
- Direct Known Subclasses:
HeapPool,HeapPool.Logged,NativePool,SlabPool
Represents an amount of memory used for a given purpose, that can be allocated to specific tasks through
child MemtableAllocator objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassNote the difference between acquire() and allocate(); allocate() makes more resources available to all owners, and acquire() makes shared resources unavailable but still recorded. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.codahale.metrics.Timerfinal com.codahale.metrics.Gauge<Long>final MemtablePool.SubPoolfinal MemtablePool.SubPool -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract MemtableAllocatornewAllocator(String table) voidshutdownAndWait(long timeout, TimeUnit unit)
-
Field Details
-
onHeap
-
offHeap
-
blockedOnAllocating
public final com.codahale.metrics.Timer blockedOnAllocating -
numPendingTasks
-
-
Method Details
-
shutdownAndWait
public void shutdownAndWait(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-
newAllocator
-
needsCleaning
public boolean needsCleaning() -
getNumPendingtasks
-