Class MemtablePool

  • Direct Known Subclasses:
    HeapPool, HeapPool.Logged, NativePool, SlabPool

    public abstract class MemtablePool
    extends java.lang.Object
    Represents an amount of memory used for a given purpose, that can be allocated to specific tasks through child MemtableAllocator objects.
    • Field Detail

      • blockedOnAllocating

        public final com.codahale.metrics.Timer blockedOnAllocating
      • numPendingTasks

        public final com.codahale.metrics.Gauge<java.lang.Long> numPendingTasks
    • Method Detail

      • shutdownAndWait

        public void shutdownAndWait​(long timeout,
                                    java.util.concurrent.TimeUnit unit)
                             throws java.lang.InterruptedException,
                                    java.util.concurrent.TimeoutException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.TimeoutException
      • newAllocator

        public abstract MemtableAllocator newAllocator​(java.lang.String table)
      • needsCleaning

        public boolean needsCleaning()
      • getNumPendingtasks

        public java.lang.Long getNumPendingtasks()