Package one.microstream.memory
Class MemoryStatistics.Default
java.lang.Object
one.microstream.memory.MemoryStatistics.Default
- All Implemented Interfaces:
MemoryStatistics
- Enclosing interface:
- MemoryStatistics
public static class MemoryStatistics.Default extends Object implements MemoryStatistics
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.memory.MemoryStatistics
MemoryStatistics.Default
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
max
public long max()Description copied from interface:MemoryStatistics
Returns the maximum amount of memory in bytes that can be used for memory management. This method returns -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.
- Specified by:
max
in interfaceMemoryStatistics
- Returns:
- the maximum amount of memory in bytes; -1 if undefined.
-
committed
public long committed()Description copied from interface:MemoryStatistics
Returns the amount of memory in bytes that is committed for the Java virtual machine to use. This amount of memory is guaranteed for the Java virtual machine to use.- Specified by:
committed
in interfaceMemoryStatistics
- Returns:
- the amount of committed memory in bytes.
-
used
public long used()Description copied from interface:MemoryStatistics
Returns the amount of used memory in bytes.- Specified by:
used
in interfaceMemoryStatistics
- Returns:
- the amount of used memory in bytes.
-