public class SchedulingParameters extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable, Subsumable<SchedulingParameters>
SchedulingParameters (PriorityParameters,
ImportanceParameters, and any others parameters defined for particular
schedulers) provide the parameters to be used by the Scheduler.
Changes to the values in a parameters object
affects the scheduling behavior of all the Schedulable objects
to which it is bound.Caution: This class is explicitly unsafe for multithreading when being changed. Code that mutates instances of this class should synchronize at a higher level.
| Modifier | Constructor and Description |
|---|---|
protected |
SchedulingParameters()
Creates a new instance of
SchedulingParameters with
the default Affinity. |
protected |
SchedulingParameters(Affinity affinity)
Creates a new instance of
SchedulingParameters. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a clone of
this. |
Affinity |
getAffinity()
Determines the affinity set instance associated of these parameters.
|
boolean |
isCompatible(Scheduler scheduler)
Determines whether
this scheduling parameters can be used by
tasks scheduled by scheduler. |
boolean |
subsumes(SchedulingParameters other)
Determines whether this parameters is more eligible than another.
|
protected SchedulingParameters(Affinity affinity)
SchedulingParameters.affinity - Sets the affinity for these parameters.protected SchedulingParameters()
SchedulingParameters with
the default Affinity.public java.lang.Object clone()
this.
clone does not copy any associations from
this and it does not implicitly bind the new object to a schedulable.
clone in class java.lang.Objectpublic boolean isCompatible(Scheduler scheduler)
this scheduling parameters can be used by
tasks scheduled by scheduler.scheduler - The scheduler to check againsttrue when and only when this can be used
with scheduler as the scheduler.public boolean subsumes(SchedulingParameters other)
subsumes in interface Subsumable<SchedulingParameters>other - The other parameters object to be compared with.public Affinity getAffinity()