|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.realtime.SchedulingParameters | +--javax.realtime.PriorityParameters
Instances of this class should be assigned to threads that are
managed by schedulers which use a single integer to determine
execution order. The base scheduler required by this specification
and represented by the class PriorityScheduler
is
such a scheduler.
Field Summary | |
private int |
priority
|
Constructor Summary | |
PriorityParameters(int priority)
Create an instance of SchedulingParameters with
the given priority. |
Method Summary | |
int |
getPriority()
Gets the priority value. |
void |
setPriority(int priority)
Sets the priority value. |
java.lang.String |
toString()
Converts the priority value to a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int priority
Constructor Detail |
public PriorityParameters(int priority)
SchedulingParameters
with
the given priority.
priority
- The priority assigned to a thread. This value
is used in place of the value returned by
java.langThread.setPriority(int)
.Method Detail |
public int getPriority()
public void setPriority(int priority) throws java.lang.IllegalArgumentException
priority
- The value to which priority is set.
java.lang.IllegalArgumentException
- Thrown if the given
priority value is less
than the minimum priority
of the scheduler of any of
the associated threads of
greater then the maximum
priority of the scheduler
of any of the associated threads.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |