org.openide.util
Class Mutex.Privileged

java.lang.Object
  extended by org.openide.util.Mutex.Privileged
Enclosing class:
Mutex

public static final class Mutex.Privileged
extends java.lang.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

Constructor Summary
Mutex.Privileged()
           
 
Method Summary
 void enterReadAccess()
           
 void enterWriteAccess()
           
 void exitReadAccess()
           
 void exitWriteAccess()
           
(package private)  void setParent(Mutex parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mutex.Privileged

public Mutex.Privileged()
Method Detail

setParent

final void setParent(Mutex parent)

enterReadAccess

public void enterReadAccess()

enterWriteAccess

public void enterWriteAccess()

exitReadAccess

public void exitReadAccess()

exitWriteAccess

public void exitWriteAccess()