|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.realtime.MonitorControl
Abstract superclass for different monitor control strategies.
Constructor Summary | |
protected |
MonitorControl()
Construct a MonitorControl . |
Method Summary | |
static MonitorControl |
getMonitorControl()
Returns the current, system-wide default monitor control strategy. |
static MonitorControl |
getMonitorControl(Object monitor)
Returns the monitor control strategy in use for the given object. |
static MonitorControl |
setMonitorControl(MonitorControl policy)
Sets the system-wide default monitor control strategy. |
static MonitorControl |
setMonitorControl(Object monitor,
MonitorControl policy)
Sets the monitor control strategy in use for a specific object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected MonitorControl()
MonitorControl
.
Method Detail |
public static MonitorControl getMonitorControl()
public static MonitorControl getMonitorControl(Object monitor)
monitor
- the Object
to query
monitor
IllegalArgumentException
- if monitor
is
nullpublic static MonitorControl setMonitorControl(MonitorControl policy)
policy
- the monitor control strategy to which to set the
system-wide default
SecurityException
- if the current execution context is
not permitted to set the system-wide default monitor control
policy
IllegalArgumentException
- if policy
is not
in immortal memory
UnsupportedOperationException
- if policy
is
not supported by this implementationpublic static MonitorControl setMonitorControl(Object monitor, MonitorControl policy)
monitor
- the object for which to change the monitor
control strategy objectpolicy
- the monitor control strategy to use for the given
object; if null, nothing happens
monitor
IllegalArgumentException
- if monitor
is
null, or if policy
is not in immortal
memory
UnsupportedOperationException
- if policy
is
not supported by this implementation
IllegalMonitorStateException
- if the calling thread does
not hold a lock on monitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |