aicas logo Realtime Java
Technology.

javax.realtime
Class MemoryArea

java.lang.Object
  |
  +--javax.realtime.MemoryArea
Direct Known Subclasses:
HeapMemory, ImmortalMemory, ImmortalPhysicalMemory, ScopedMemory

public abstract class MemoryArea
extends java.lang.Object


Constructor Summary
protected MemoryArea(long sizeInBytes)
           
protected MemoryArea(long sizeInBytes, java.lang.Runnable logic)
           
protected MemoryArea(SizeEstimator size)
           
protected MemoryArea(SizeEstimator size, java.lang.Runnable logic)
           
 
Method Summary
 void enter()
           
 void enter(java.lang.Runnable logic)
           
 void executeInArea(java.lang.Runnable logic)
           
protected  void finalize()
           
static MemoryArea getMemoryArea(java.lang.Object object)
           
 long memoryConsumed()
           
 long memoryRemaining()
           
 java.lang.Object newArray(java.lang.Class type, int number)
           
 java.lang.Object newInstance(java.lang.Class type)
           
 java.lang.Object newInstance(java.lang.reflect.Constructor c, java.lang.Object[] args)
           
 long size()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryArea

protected MemoryArea(long sizeInBytes)

MemoryArea

protected MemoryArea(SizeEstimator size)

MemoryArea

protected MemoryArea(long sizeInBytes,
                     java.lang.Runnable logic)

MemoryArea

protected MemoryArea(SizeEstimator size,
                     java.lang.Runnable logic)
Method Detail

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object

enter

public void enter()
           throws ScopedCycleException

enter

public void enter(java.lang.Runnable logic)
           throws ScopedCycleException

getMemoryArea

public static MemoryArea getMemoryArea(java.lang.Object object)

memoryConsumed

public long memoryConsumed()

memoryRemaining

public long memoryRemaining()

newArray

public java.lang.Object newArray(java.lang.Class type,
                                 int number)
                          throws java.lang.IllegalAccessException,
                                 java.lang.InstantiationException

newInstance

public java.lang.Object newInstance(java.lang.Class type)
                             throws java.lang.IllegalAccessException,
                                    java.lang.InstantiationException

newInstance

public java.lang.Object newInstance(java.lang.reflect.Constructor c,
                                    java.lang.Object[] args)
                             throws java.lang.IllegalAccessException,
                                    java.lang.InstantiationException

size

public long size()

executeInArea

public void executeInArea(java.lang.Runnable logic)
                   throws InaccessibleAreaException

aicas logo Realtime Java
Technology.

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2003 aicas GmbH. All Rights Reserved.