|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MemoryInfoAccessor
Used for providing runtime memory information of Java virtual machine.
Runtime
,
ManagementFactory.getMemoryMXBean()
Method Summary | |
---|---|
long |
getFreeMemory()
Returns the amount of free memory in the JVM in bytes. |
long |
getMaxMemory()
Returns the maximum amount of memory that the JVM will attempt to use in bytes. |
long |
getTotalMemory()
Returns total amount allocated memory in JVM in bytes. |
Method Detail |
---|
long getTotalMemory()
Runtime.totalMemory()
long getFreeMemory()
Runtime.freeMemory()
long getMaxMemory()
Runtime.maxMemory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |