public abstract class MonitorControl extends Object
Jamaica Real-Time Specification for Java class MonitorControl.
This is the abstract super class of the monitor control policies PriorityCeilingEmulation and PriorityInheritance.
The static methods in this class permit setting of the default monitor control policy and the policy to be used for one particular object.
Modifier | Constructor and Description |
---|---|
protected |
MonitorControl()
Default Constructor, must be called by subclasses of
MonitorControl.
|
Modifier and Type | Method and Description |
---|---|
static MonitorControl |
getMonitorControl()
getMonitorControl returns the default monitor control
policy.
|
static MonitorControl |
getMonitorControl(Object monitor)
getMonitorControl determines the monitor control associated with
a given Java object.
|
static MonitorControl |
setMonitorControl(MonitorControl monCtl)
setMonitorControl sets the default monitor control policy to the
given argument.
|
static MonitorControl |
setMonitorControl(Object monitor,
MonitorControl monCtl)
setMonitorControl set the monitor control for the monitor
associated with a Java object.
|
protected MonitorControl()
public static MonitorControl getMonitorControl(Object monitor)
StaticIllegalArgumentException
- when monitor
is
null
.monitor
- The java object, must not be null;public static MonitorControl getMonitorControl()
public static MonitorControl setMonitorControl(MonitorControl monCtl)
require
((monCtl == null) || (monCtl instanceof PriorityInheritance) || (monCtl instanceof PriorityCeilingEmulation))
ensure
((monCtl == null) || (getMonitorControl() == monCtl))
SecurityException
- iff the caller is not permitted to set
default monitor control policy.StaticIllegalArgumentException
- iff strict RTSJ is required and monCtl is
not in immortal memory.UnsupportedOperationException
- iff monCtl policy is not a supported
monitor control policy.monCtl
- The new policy.public static MonitorControl setMonitorControl(Object monitor, MonitorControl monCtl)
StaticIllegalArgumentException
- iff strict RTSJ is required and monCtl is
not in immortal memory.UnsupportedOperationException
- iff monCtl policy is not a supported
monitor control policy.monitor
- The Java object whose monitor's policy is to be
changed.monCtl
- The new monitor control to be used for the Java
object.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.