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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VersioningLock.ReadLock
static class
VersioningLock.WriteLock
-
Constructor Summary
Constructors Constructor Description VersioningLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersioningLock.ReadLock
acquireReadLock()
VersioningLock.WriteLock
acquireWriteLock()
-
-
-
Method Detail
-
acquireReadLock
public VersioningLock.ReadLock acquireReadLock() throws InterruptedException
- Throws:
InterruptedException
-
acquireWriteLock
public VersioningLock.WriteLock acquireWriteLock() throws InterruptedException
- Throws:
InterruptedException
-
-