public class ControlledFileReaderFlags
extends java.lang.Object
Constructor and Description |
---|
ControlledFileReaderFlags(long softMemoryLimit,
java.util.Comparator keyComparator) |
ControlledFileReaderFlags(long softMemoryLimit,
long memMapLimit,
java.util.Comparator keyComparator)
This constructor can be used to configure an instance with an arbitrary amount of
mem maps.
|
Modifier and Type | Method and Description |
---|---|
void |
decreaseMemoryLoad(int amount) |
boolean |
hasMemMapLimitReached() |
boolean |
hasMemoryLimitReached() |
void |
increaseMemMapLoad(ControlledFileReader reader) |
void |
increaseMemoryLoad(int amount) |
void |
reset() |
public ControlledFileReaderFlags(long softMemoryLimit, java.util.Comparator keyComparator)
public ControlledFileReaderFlags(long softMemoryLimit, long memMapLimit, java.util.Comparator keyComparator)
public boolean hasMemoryLimitReached()
public void increaseMemoryLoad(int amount)
public void decreaseMemoryLoad(int amount)
public void increaseMemMapLoad(ControlledFileReader reader)
public boolean hasMemMapLimitReached()
public void reset()