org.apache.jackrabbit.core.version
Class VersioningLock

java.lang.Object
  extended by org.apache.jackrabbit.core.version.VersioningLock

public class VersioningLock
extends Object

A reentrant read-write lock used by the internal version manager 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.


Nested Class Summary
static class VersioningLock.ReadLock
           
static class VersioningLock.WriteLock
           
 
Constructor Summary
VersioningLock()
           
 
Method Summary
 VersioningLock.ReadLock acquireReadLock()
           
 VersioningLock.WriteLock acquireWriteLock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersioningLock

public VersioningLock()
Method Detail

acquireReadLock

public VersioningLock.ReadLock acquireReadLock()
                                        throws InterruptedException
Throws:
InterruptedException

acquireWriteLock

public VersioningLock.WriteLock acquireWriteLock()
                                          throws InterruptedException
Throws:
InterruptedException


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