public static class MemoryStatistics.Default extends Object implements MemoryStatistics
MemoryStatistics.Default| Modifier and Type | Method and Description |
|---|---|
long |
committed()
Returns the amount of memory in bytes that is committed for
the Java virtual machine to use.
|
long |
max()
Returns the maximum amount of memory in bytes that can be
used for memory management.
|
long |
used()
Returns the amount of used memory in bytes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitNewpublic long max()
MemoryStatistics-1
if the maximum memory size is undefined.
This amount of memory is not guaranteed to be available for memory management if it is greater than the amount of committed memory. The Java virtual machine may fail to allocate memory even if the amount of used memory does not exceed this maximum size.
max in interface MemoryStatistics-1 if undefined.public long committed()
MemoryStatisticscommitted in interface MemoryStatisticspublic long used()
MemoryStatisticsused in interface MemoryStatisticsCopyright © 2022 MicroStream Software. All rights reserved.