Class MemoryLimitController
- java.lang.Object
-
- org.apache.bookkeeper.common.util.MemoryLimitController
-
public class MemoryLimitController extends java.lang.Object
Controller for tracking the amount of memory used for some task.
-
-
Constructor Summary
Constructors Constructor Description MemoryLimitController(long memoryLimitBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
currentUsage()
void
releaseMemory(long size)
void
reserveMemory(long size)
boolean
tryReserveMemory(long size)
-