public class BufferingManager extends Object implements Closeable, IMemoryManageable
BufferedIOIMemoryManageable.FreeMemoryLevel| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
freeMemory(IMemoryManageable.FreeMemoryLevel level)
Request to free some memory.
|
String |
getDescription()
Desciption.
|
List<String> |
getItemsDescription()
Describe each item that can be freed.
|
long |
getMaxMemory() |
long |
getMemoryThreshold() |
long |
getToBeWrittenThreshold() |
void |
setMemoryLimits(long memoryThreshold,
long maxMemory,
long toBeWrittenThreshold)
Set the memory limits.
|
public long getMemoryThreshold()
public long getMaxMemory()
public long getToBeWrittenThreshold()
public void setMemoryLimits(long memoryThreshold,
long maxMemory,
long toBeWrittenThreshold)
memoryThreshold - when this threshold is reached, it accelerates freeing some memorymaxMemory - maximum memory to usetoBeWrittenThreshold - when this threshold is reached, pending writes are executedpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic String getDescription()
IMemoryManageablegetDescription in interface IMemoryManageablepublic List<String> getItemsDescription()
IMemoryManageablegetItemsDescription in interface IMemoryManageablepublic void freeMemory(IMemoryManageable.FreeMemoryLevel level)
IMemoryManageablefreeMemory in interface IMemoryManageableCopyright © 2017. All rights reserved.