Package org.apache.jackrabbit.core.util
Class XAReentrantLock
- java.lang.Object
-
- EDU.oswego.cs.dl.util.concurrent.ReentrantLock
-
- org.apache.jackrabbit.core.util.XAReentrantLock
-
- All Implemented Interfaces:
EDU.oswego.cs.dl.util.concurrent.Sync
public class XAReentrantLock extends EDU.oswego.cs.dl.util.concurrent.ReentrantLock
A reentrant lock for synchronization. Unlike a normal reentrant lock, this one allows the lock to be re-entered not just by a thread that's already holding the lock but by any thread within the same transaction.
-
-
Constructor Summary
Constructors Constructor Description XAReentrantLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquire()
void
release()
-
-
-
Method Detail
-
acquire
public void acquire() throws InterruptedException
- Specified by:
acquire
in interfaceEDU.oswego.cs.dl.util.concurrent.Sync
- Overrides:
acquire
in classEDU.oswego.cs.dl.util.concurrent.ReentrantLock
- Throws:
InterruptedException
-
release
public void release()
- Specified by:
release
in interfaceEDU.oswego.cs.dl.util.concurrent.Sync
- Overrides:
release
in classEDU.oswego.cs.dl.util.concurrent.ReentrantLock
-
-