|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEDU.oswego.cs.dl.util.concurrent.ReentrantLock
org.apache.jackrabbit.core.util.XAReentrantLock
public class XAReentrantLock
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.
Field Summary |
---|
Fields inherited from class EDU.oswego.cs.dl.util.concurrent.ReentrantLock |
---|
holds_, owner_ |
Fields inherited from interface EDU.oswego.cs.dl.util.concurrent.Sync |
---|
ONE_CENTURY, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR |
Constructor Summary | |
---|---|
XAReentrantLock()
|
Method Summary | |
---|---|
void |
acquire()
|
void |
release()
|
Methods inherited from class EDU.oswego.cs.dl.util.concurrent.ReentrantLock |
---|
attempt, holds, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XAReentrantLock()
Method Detail |
---|
public void acquire() throws InterruptedException
acquire
in interface EDU.oswego.cs.dl.util.concurrent.Sync
acquire
in class EDU.oswego.cs.dl.util.concurrent.ReentrantLock
InterruptedException
public void release()
release
in interface EDU.oswego.cs.dl.util.concurrent.Sync
release
in class EDU.oswego.cs.dl.util.concurrent.ReentrantLock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |