public final class HeapMemory extends PerennialMemory
Heap memory represents the default allocation context for Java applications.
| Modifier and Type | Method and Description |
|---|---|
static HeapMemory |
instance()
instance returns the single instance of HeapMemory in the
system.
|
long |
memoryConsumed()
memoryConsumed returns the number of bytes of memory of this
memory area that have been consumed.
|
long |
memoryRemaining()
memoryRemaining returns the number of available bytes left in
this memory area.
|
enter, enter, enter, enter, enter, enter, enter, executeInArea, executeInArea, executeInArea, executeInArea, executeInArea, executeInArea, getMemoryArea, mayHoldReferenceTo, mayHoldReferenceTo, newArray, newArrayInArea, newInstance, newInstance, sizepublic static HeapMemory instance()
public long memoryRemaining()
memoryRemaining in class MemoryAreapublic long memoryConsumed()
memoryConsumed in class MemoryAreaaicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2021 aicas GmbH. All Rights Reserved.