javax.realtime
Class MonitorControl
java.lang.Object
|
+--javax.realtime.MonitorControl
- Direct Known Subclasses:
- PriorityCeilingEmulation, PriorityInheritance
- public abstract class MonitorControl
- extends java.lang.Object
Abstract superclass for all monitor control policy objects.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MonitorControl
public MonitorControl()
getMonitorControl
public static MonitorControl getMonitorControl(java.lang.Object monitor)
getMonitorControl
public static MonitorControl getMonitorControl()
setMonitorControl
public static void setMonitorControl(MonitorControl defaultMonCtl)
- Control the default monitor behavior for object monitors
used by synchronized statements and methods in the system.
The type of the policy object determines the type of behavior.
Conforming implementations must support priority ceiling emulation
and priority inheritance for fixed priority preemptive threads.
- Parameters:
policy
- The new monitor control policy. If null nothing happens.
setMonitorControl
public static void setMonitorControl(java.lang.Object monitor,
MonitorControl monCtl)
- Has the same effect as
setMonitorControl()
, except that the policy
only affects the indicated object monitor.
- Parameters:
monitor
- The monitor for which the new policy will be in use.
The policy will take effect on the first attempt to lock the monitor after the
completion of this method. If null nothing will happen.policy
- The new policy for the object. If null nothing will happen.