public class RuntimeMemoryInfoAccessor extends Object implements MemoryInfoAccessor
Runtime
.Constructor and Description |
---|
RuntimeMemoryInfoAccessor() |
Modifier and Type | Method and Description |
---|---|
long |
getFreeMemory()
Returns the amount of free memory in the Java virtual machine in bytes.
|
long |
getMaxMemory()
Returns the maximum amount of memory that the Java virtual machine will attempt to use in bytes.
|
long |
getTotalMemory()
Returns total amount allocated memory in the Java virtual machine in bytes.
|
public long getTotalMemory()
MemoryInfoAccessor
getTotalMemory
in interface MemoryInfoAccessor
Runtime.totalMemory()
public long getFreeMemory()
MemoryInfoAccessor
getFreeMemory
in interface MemoryInfoAccessor
Runtime.freeMemory()
public long getMaxMemory()
MemoryInfoAccessor
getMaxMemory
in interface MemoryInfoAccessor
Runtime.maxMemory()
Copyright © 2018 Hazelcast, Inc.. All rights reserved.