public class ImmortalConstraint extends ResourceConstraint<ImmortalConstraint>
| Constructor and Description |
|---|
ImmortalConstraint(RealtimeThreadGroup group,
long limit)
Create a new contraint for the given RealtimeThreadGroup.
|
| Modifier and Type | Method and Description |
|---|---|
long |
available()
Determine how much of the resource are available for use.
|
static ImmortalConstraint |
currentConstraint()
Determine the processing constraint for the current execution context.
|
static ImmortalConstraint |
currentConstraint(java.lang.Thread thread)
Determine the processing constraint for the give execution context.
|
static ImmortalConstraint |
currentConstraint(java.lang.ThreadGroup group)
Determine the processing constraint for the give execution context.
|
protected void |
finalize() |
long |
getBudget()
Determine the total amount of a memory under the control of this
resource constraint instance.
|
static ImmortalConstraint |
getRootConstraint()
Get the root instance for this constraint type.
|
boolean |
isEnforcing()
Determine whether or not enforcing is in effect.
|
void |
start()
Start applying this constraint to is tasks.
|
void |
stop()
Stop applying this constraint to is tasks.
|
long |
used()
Determine how much of the resource have been used of the amount available.
|
getNotificationHandler, getParent, getRealtimeThreadGroup, governs, governs, governs, setNotificationHandler, visitBorrowers, visitGovernedpublic ImmortalConstraint(RealtimeThreadGroup group, long limit)
group - The RealtimeThreadGroup to govern.limit - the amount of memory to take from its parent to manage.public static ImmortalConstraint getRootConstraint()
public static ImmortalConstraint currentConstraint()
public static ImmortalConstraint currentConstraint(java.lang.Thread thread)
thread - The given execution context.public static ImmortalConstraint currentConstraint(java.lang.ThreadGroup group)
group - The given execution context.public boolean isEnforcing()
isEnforcing in class ResourceConstraint<ImmortalConstraint>true when yes and false when not.public void start()
start in class ResourceConstraint<ImmortalConstraint>public void stop()
stop in class ResourceConstraint<ImmortalConstraint>public long getBudget()
public long used()
public long available()
protected void finalize()
throws java.lang.Throwable
finalize in class ResourceConstraint<ImmortalConstraint>java.lang.Throwableaicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2024 aicas GmbH. All Rights Reserved.