|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.impl.common.GlobalLock
public class GlobalLock
Whenever multiple locks must be acquired within the implementation of XML Beans, this GlobalLock is acquired first, and then released when all the acutally-needed locks have been acquired. This prevents deadlocks.
Constructor Summary | |
---|---|
GlobalLock()
|
Method Summary | |
---|---|
static void |
acquire()
|
static void |
release()
|
static void |
tryToAcquire()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalLock()
Method Detail |
---|
public static void acquire() throws java.lang.InterruptedException
java.lang.InterruptedException
public static void tryToAcquire()
public static void release()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |