javax.realtime
Class VTMemory
java.lang.Object
|
+--javax.realtime.MemoryArea
|
+--javax.realtime.ScopedMemory
|
+--javax.realtime.VTMemory
- public class VTMemory
- extends ScopedMemory
The executin time of an allocation from a VTMemory
area
may take a variable amount of time. However, since VTMemory
areas are not subject to garbage collection and objects within it may
not be moved, these areas can be used by instances of
NoHeapRealtimeThread
.
Method Summary |
long |
getMaximumSize()
Get the maximum size this memory area can attain. |
java.lang.String |
toString()
Returns a user-friendly representation of this ScopedMemory . |
Methods inherited from class javax.realtime.ScopedMemory |
enter,
enter,
finalize,
getPortal,
getReferenceCount,
join,
join,
joinAndEnter,
joinAndEnter,
joinAndEnter,
joinAndEnter,
setPortal |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
VTMemory
public VTMemory(long initialSizeInBytes,
long maxSizeInBytes)
- Creates a
VTMemory
of the given size.
- Parameters:
initialSizeInBytes
- The size in bytes of the memory to initially
allocate for this area.maximumSizeInBytes
- The maximum size in bytes this memory area can
grow to.
VTMemory
public VTMemory(long initialSizeInBytes,
long maxSizeInBytes,
java.lang.Runnable logic)
VTMemory
public VTMemory(SizeEstimator initial,
SizeEstimator maximum)
VTMemory
public VTMemory(SizeEstimator initial,
SizeEstimator maximum,
java.lang.Runnable logic)
getMaximumSize
public long getMaximumSize()
- Description copied from class: ScopedMemory
- Get the maximum size this memory area can attain. If this is
a fixed size memorea area, the returned value will be equal
to the initial size.
- Overrides:
- getMaximumSize in class ScopedMemory
- Tags copied from class: ScopedMemory
- Returns:
- The maximum size attainable.
toString
public java.lang.String toString()
- Description copied from class: ScopedMemory
- Returns a user-friendly representation of this
ScopedMemory
.
- Overrides:
- toString in class ScopedMemory
- Tags copied from class: ScopedMemory
- Returns:
- The string representation