javax.realtime
Class HeapMemory

java.lang.Object
  extended by javax.realtime.MemoryArea
      extended by javax.realtime.HeapMemory

public final class HeapMemory
extends MemoryArea

The HeapMemory class is a singleton object that allows logic with a non-heap allocation context to allocate objects in the Java heap.


Method Summary
static HeapMemory instance()
          Returns a reference to the singleton instance of HeapMemory representing the Java heap.
 
Methods inherited from class javax.realtime.MemoryArea
enter, enter, executeInArea, getMemoryArea, memoryConsumed, memoryRemaining, newArray, newInstance, newInstance, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static HeapMemory instance()
Returns a reference to the singleton instance of HeapMemory representing the Java heap. The singleton instance of this class shall be allocated in the ImmortalMemory area.

Returns:
The singleton HeapMemory object.