org.apache.jackrabbit.core.util
Class XAReentrantLock

java.lang.Object
  extended by EDU.oswego.cs.dl.util.concurrent.ReentrantLock
      extended by 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.


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

XAReentrantLock

public XAReentrantLock()
Method Detail

acquire

public void acquire()
             throws InterruptedException

Specified by:
acquire in interface EDU.oswego.cs.dl.util.concurrent.Sync
Overrides:
acquire in class EDU.oswego.cs.dl.util.concurrent.ReentrantLock
Throws:
InterruptedException

release

public void release()

Specified by:
release in interface EDU.oswego.cs.dl.util.concurrent.Sync
Overrides:
release in class EDU.oswego.cs.dl.util.concurrent.ReentrantLock


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.