public class ProcessMemoryManager extends Object implements IProcessMemoryManager
Modifier and Type | Class and Description |
---|---|
class |
ProcessMemoryManager.MemorySampler |
Modifier and Type | Field and Description |
---|---|
static IProcessMemoryManager |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
long |
getFreeMemory() |
long |
getFreeMemory(boolean asyncCheckIfEnabled) |
long |
getMaximumMemory() |
long |
getMemoryUsage() |
long |
getMemoryUsage(boolean asyncCheckIfEnabled) |
double |
getMemoryUsagePercentage(boolean asyncCheckIfEnabled) |
boolean |
isAsyncCheckEnabled() |
void |
performGC() |
public static final IProcessMemoryManager INSTANCE
public void performGC()
performGC
in interface IProcessMemoryManager
public double getMemoryUsagePercentage(boolean asyncCheckIfEnabled)
getMemoryUsagePercentage
in interface IProcessMemoryManager
public long getMemoryUsage()
getMemoryUsage
in interface IProcessMemoryManager
public long getMemoryUsage(boolean asyncCheckIfEnabled)
public long getMaximumMemory()
getMaximumMemory
in interface IProcessMemoryManager
public long getFreeMemory()
getFreeMemory
in interface IProcessMemoryManager
public boolean isAsyncCheckEnabled()
isAsyncCheckEnabled
in interface IProcessMemoryManager
public long getFreeMemory(boolean asyncCheckIfEnabled)
Copyright © GigaSpaces.