public abstract class MemtablePool
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
MemtablePool.SubPool
Note the difference between acquire() and allocate(); allocate() makes more resources available to all owners,
and acquire() makes shared resources unavailable but still recorded.
|
| Modifier and Type | Field and Description |
|---|---|
com.codahale.metrics.Timer |
blockedOnAllocating |
com.codahale.metrics.Gauge<java.lang.Long> |
numPendingTasks |
MemtablePool.SubPool |
offHeap |
MemtablePool.SubPool |
onHeap |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getNumPendingtasks() |
boolean |
needsCleaning() |
abstract MemtableAllocator |
newAllocator() |
void |
shutdownAndWait(long timeout,
java.util.concurrent.TimeUnit unit) |
public final MemtablePool.SubPool onHeap
public final MemtablePool.SubPool offHeap
public final com.codahale.metrics.Timer blockedOnAllocating
public final com.codahale.metrics.Gauge<java.lang.Long> numPendingTasks
public void shutdownAndWait(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.TimeoutException
java.lang.InterruptedExceptionjava.util.concurrent.TimeoutExceptionpublic abstract MemtableAllocator newAllocator()
public boolean needsCleaning()
public java.lang.Long getNumPendingtasks()
Copyright © 2009-2022 The Apache Software Foundation