org.apache.jackrabbit.core.version
Class VersioningLock
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersioningLock
public VersioningLock()
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.