|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.impl.common.Mutex
public class Mutex
Constructor Summary | |
---|---|
Mutex()
|
Method Summary | |
---|---|
void |
acquire()
Acquire the mutex. |
void |
release()
Release the mutex. |
boolean |
tryToAcquire()
Attempts to acquire the mutex. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mutex()
Method Detail |
---|
public void acquire() throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean tryToAcquire()
public void release()
java.lang.IllegalStateException
- (a RuntimeException) if a thread
other than the current owner tries to release the mutex.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |