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.ReentrantLockA 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 voidacquire()voidrelease()
-
-
-
Method Detail
-
acquire
public void acquire() throws InterruptedException- Specified by:
acquirein interfaceEDU.oswego.cs.dl.util.concurrent.Sync- Overrides:
acquirein classEDU.oswego.cs.dl.util.concurrent.ReentrantLock- Throws:
InterruptedException
-
release
public void release()
- Specified by:
releasein interfaceEDU.oswego.cs.dl.util.concurrent.Sync- Overrides:
releasein classEDU.oswego.cs.dl.util.concurrent.ReentrantLock
-
-