Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.util 6.8.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`Mutex.Privileged()`

Method Summary
`void` | `enterReadAccess()`
`void` | `enterWriteAccess()`
`void` | `exitReadAccess()`
`void` | `exitWriteAccess()`

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

### enterReadAccess

    public void enterReadAccess()

### enterWriteAccess

    public void enterWriteAccess()

### exitReadAccess

    public void exitReadAccess()

### exitWriteAccess

    public void exitWriteAccess()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.util 6.8.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.