public class MemoryLimitController extends Object
| Constructor and Description |
|---|
MemoryLimitController(long memoryLimitBytes) |
| Modifier and Type | Method and Description |
|---|---|
long |
currentUsage() |
void |
releaseMemory(long size) |
void |
reserveMemory(long size) |
boolean |
tryReserveMemory(long size) |
public boolean tryReserveMemory(long size)
public void reserveMemory(long size)
throws InterruptedException
InterruptedExceptionpublic void releaseMemory(long size)
public long currentUsage()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.