javax.realtime
Class VTMemory
java.lang.Object
javax.realtime.MemoryArea
javax.realtime.ScopedMemory
javax.realtime.VTMemory
- public class VTMemory
- extends ScopedMemory
Constructor Summary |
VTMemory(long minSize,
long maxSize)
Creates a new VTMemory instance. |
Method Summary |
protected void |
fini()
|
protected void |
init()
|
long |
memoryConsumed()
An exact count, in bytes, of the all of the memory currently
used by the system for the allocated objects. |
long |
memoryRemaining()
An approximation to the total amount of memory currently
available for future allocated objects, measured in bytes. |
Methods inherited from class javax.realtime.ScopedMemory |
enter, getMaximumSize, getPortal, getReferenceCount, join, join, joinAndEnter, joinAndEnter, joinAndEnter, joinAndEnter, setPortal, toString |
VTMemory
public VTMemory(long minSize,
long maxSize)
- Creates a new
VTMemory
instance.
- Parameters:
minSize
- a long
value representing the
minimum size for this memory.maxSize
- a long
value representing the max
size for this memory area.
memoryConsumed
public long memoryConsumed()
- An exact count, in bytes, of the all of the memory currently
used by the system for the allocated objects.
- Specified by:
memoryConsumed
in class MemoryArea
- Returns:
- The amount of memory consumed in bytes.
memoryRemaining
public long memoryRemaining()
- An approximation to the total amount of memory currently
available for future allocated objects, measured in bytes.
- Specified by:
memoryRemaining
in class MemoryArea
- Returns:
- The amount of remaining memory in bytes.
init
protected void init()
- Specified by:
init
in class MemoryArea
fini
protected void fini()
- Specified by:
fini
in class MemoryArea
jRate is developed and maintained by the jRate project development team.
Copyright (c) 2001-2005 Angelo Corsaro and Morgan Deters.