当前页面:
在线文档首页 >
NetBeans API Javadoc 5.0.0
Mutex.Privileged (NetBeans Utilities API) - NetBeans API Javadoc 5.0.0
org.openide.util
Class Mutex.Privileged
java.lang.Object
org.openide.util.Mutex.Privileged
- Enclosing class:
- Mutex
- public static final class Mutex.Privileged
- extends Object
Provides access to Mutex's internal methods.
This class can be used when one wants to avoid creating a
bunch of Runnables. Instead,
try {
enterXAccess ();
yourCustomMethod ();
} finally {
exitXAccess ();
}
can be used.
You must, however, control the related Mutex, i.e. you must be creator of
the Mutex.
- Since:
- 1.17
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mutex.Privileged
public Mutex.Privileged()
enterReadAccess
public void enterReadAccess()
enterWriteAccess
public void enterWriteAccess()
exitReadAccess
public void exitReadAccess()
exitWriteAccess
public void exitWriteAccess()