Package org.apache.xmlbeans.impl.common
Class GlobalLock
java.lang.Object
org.apache.xmlbeans.impl.common.GlobalLock
public class GlobalLock extends Object
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
Constructors Constructor Description GlobalLock()
-
Method Summary
Modifier and Type Method Description static void
acquire()
static void
release()
static void
tryToAcquire()
-
Constructor Details
-
GlobalLock
public GlobalLock()
-
-
Method Details
-
acquire
- Throws:
InterruptedException
-
tryToAcquire
public static void tryToAcquire() -
release
public static void release()
-