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, size
public static HeapMemory instance()
public long memoryRemaining()
memoryRemaining
in class MemoryArea
public long memoryConsumed()
memoryConsumed
in class MemoryArea
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.