javax.realtime.memory.@Deprecated public class LTMemory extends ScopedMemory
LTMemory.| Constructor and Description |
|---|
LTMemory(long size)
Deprecated.
Equivalent to
LTMemory(long, long, Runnable) with the argument
list (size, size, null). |
LTMemory(long initial,
long maximum)
Deprecated.
Equivalent to
LTMemory(long, long, Runnable) with
the argument list (initial, maximum, null). |
LTMemory(long initial,
long maximum,
java.lang.Runnable logic)
Deprecated.
Creates an
LTMemory of the given size. |
LTMemory(long size,
java.lang.Runnable logic)
Deprecated.
Equivalent to
LTMemory(long, long, Runnable) with the argument
list (size, size, logic). |
LTMemory(SizeEstimator size)
Deprecated.
Equivalent to
LTMemory(long, long, Runnable) with the argument
list (size.getEstimate(), size.getEstimate(), null). |
LTMemory(SizeEstimator size,
java.lang.Runnable logic)
Deprecated.
Equivalent to
LTMemory(long, long, Runnable) with the argument
list (size.getEstimate(), size.getEstimate(), logic). |
LTMemory(SizeEstimator initial,
SizeEstimator maximum)
Deprecated.
Equivalent to
LTMemory(long, long, Runnable) with the argument
list (initial.getEstimate(), maximum.getEstimate(), null). |
LTMemory(SizeEstimator initial,
SizeEstimator maximum,
java.lang.Runnable logic)
Deprecated.
Equivalent to
LTMemory(long, long, Runnable) with the argument
list (initial.getEstimate(), maximum.getEstimate(), logic). |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Deprecated.
Creates a string representation of this object.
|
enter, enter, executeInArea, getMaximumSize, getPortal, getReferenceCount, join, join, joinAndEnter, joinAndEnter, joinAndEnter, joinAndEnter, newArray, newInstance, newInstance, setPortalenter, enter, enter, enter, enter, executeInArea, executeInArea, executeInArea, executeInArea, executeInArea, getMemoryArea, mayHoldReferenceTo, mayHoldReferenceTo, memoryConsumed, memoryRemaining, newArrayInArea, sizepublic LTMemory(long initial,
long maximum,
java.lang.Runnable logic)
LTMemory of the given size.initial - The size in bytes of the memory to
allocate for this area. This memory must be committed
before the completion of the constructor.maximum - The size in bytes of the memory to
allocate for this area.logic - The run() of the given
Runnable will be executed using
this as its initial memory area. When
logic is null, this constructor is
equivalent to LTMemory(long initial, long maximum).java.lang.IllegalArgumentException - when initial
is greater than maximum, or when initial
or maximum is less than zero.StaticOutOfMemoryError - when there is insufficient memory for the
LTMemory object or for its allocation
area in its backing store.IllegalAssignmentError - when storing logic in
this would violate the assignment rules.public LTMemory(SizeEstimator initial, SizeEstimator maximum, java.lang.Runnable logic)
LTMemory(long, long, Runnable) with the argument
list (initial.getEstimate(), maximum.getEstimate(), logic).initial - An instance of SizeEstimator used to give an
estimate of the initial size.
This memory must be committed
before the completion of the constructor.maximum - An instance of SizeEstimator used to give an
estimate for the maximum bytes to allocate for this area.logic - The run() of the given
Runnable will be executed using
this as its initial memory area. When
logic is null, this constructor is
equivalent to LTMemory(SizeEstimator initial, SizeEstimator maximum).java.lang.IllegalArgumentException - when initial is
null, maximum is
null, initial.getEstimate() is
greater than maximum.getEstimate(), or when
initial.getEstimate() is less than zero.StaticOutOfMemoryError - when there is insufficient memory for the
LTMemory object or for its allocation
area in its backing store.IllegalAssignmentError - when storing logic in
this would violate the assignment rules.public LTMemory(long initial,
long maximum)
LTMemory(long, long, Runnable) with
the argument list (initial, maximum, null).initial - The size in bytes of the memory to
allocate for this area. This memory must be committed
before the completion of the constructor.maximum - The size in bytes of the memory to
allocate for this area.java.lang.IllegalArgumentException - when initial
is greater than maximum, or when initial
or maximum is less than zero.StaticOutOfMemoryError - when there is insufficient memory for the
LTMemory object or for its allocation
area in its backing store.public LTMemory(SizeEstimator initial, SizeEstimator maximum)
LTMemory(long, long, Runnable) with the argument
list (initial.getEstimate(), maximum.getEstimate(), null).initial - An instance of SizeEstimator used to give an
estimate of the initial size.
This memory must be committed
before the completion of the constructor.maximum - An instance of SizeEstimator used to give an
estimate for the maximum bytes to allocate for this area.java.lang.IllegalArgumentException - when initial is
null, maximum is
null, initial.getEstimate() is
greater than maximum.getEstimate(), or when
initial.getEstimate() is less than zero.StaticOutOfMemoryError - when there is insufficient memory for the
LTMemory object or for its allocation
area in its backing store.public LTMemory(long size,
java.lang.Runnable logic)
LTMemory(long, long, Runnable) with the argument
list (size, size, logic).size - The size in bytes of the memory to
allocate for this area. This memory must be committed
before the completion of the constructor.logic - The run() of the given
Runnable will be executed using
this as its initial memory area. When
logic is null, this constructor is
equivalent to LTMemory(long size).java.lang.IllegalArgumentException - when size
is less than zero.StaticOutOfMemoryError - when there is insufficient memory for the
LTMemory object or for its allocation
area in its backing store.IllegalAssignmentError - when storing logic in
this would violate the assignment rules.public LTMemory(SizeEstimator size, java.lang.Runnable logic)
LTMemory(long, long, Runnable) with the argument
list (size.getEstimate(), size.getEstimate(), logic).size - An instance of SizeEstimator used to give an
estimate of the initial size.
This memory must be committed
before the completion of the constructor.logic - The run() of the given
Runnable will be executed using
this as its initial memory area. When
logic is null, this constructor is
equivalent to LTMemory(SizeEstimator size).java.lang.IllegalArgumentException - when size is
null, or size.getEstimate() is
less than zero.StaticOutOfMemoryError - when there is insufficient memory for the
LTMemory object or for its allocation
area in its backing store.IllegalAssignmentError - when storing logic in
this would violate the assignment rules.public LTMemory(long size)
LTMemory(long, long, Runnable) with the argument
list (size, size, null).size - The size in bytes of the memory to
allocate for this area. This memory must be committed
before the completion of the constructor.java.lang.IllegalArgumentException - when size
is less than zero.StaticOutOfMemoryError - when there is insufficient memory for the
LTMemory object or for its allocation
area in its backing store.public LTMemory(SizeEstimator size)
LTMemory(long, long, Runnable) with the argument
list (size.getEstimate(), size.getEstimate(), null).size - An instance of SizeEstimator used to give an
estimate of the initial size.
This memory must be committed
before the completion of the constructor.java.lang.IllegalArgumentException - when size is
null, or size.getEstimate() is
less than zero.StaticOutOfMemoryError - when there is insufficient memory for the
LTMemory object or for its allocation
area in its backing store.public java.lang.String toString()
(LTMemory) ScopedMemory#<num>
where <num> uniquely identifies the LTMemory area.
toString in class ScopedMemorythis.