Package org.apache.jackrabbit.core.state
Class FineGrainedISMLocking
- java.lang.Object
-
- org.apache.jackrabbit.core.state.FineGrainedISMLocking
-
- All Implemented Interfaces:
ISMLocking
public class FineGrainedISMLocking extends Object implements ISMLocking
FineGrainedISMLocking...
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jackrabbit.core.state.ISMLocking
ISMLocking.ReadLock, ISMLocking.WriteLock
-
-
Constructor Summary
Constructors Constructor Description FineGrainedISMLocking()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISMLocking.ReadLockacquireReadLock(ItemId id)Acquire a read lock for the given itemid.ISMLocking.WriteLockacquireWriteLock(ChangeLog changeLog)Acquires a write lock for the givenchangeLog.
-
-
-
Method Detail
-
acquireReadLock
public ISMLocking.ReadLock acquireReadLock(ItemId id) throws InterruptedException
Acquire a read lock for the given itemid.- Specified by:
acquireReadLockin interfaceISMLocking- Parameters:
id- an item id.- Throws:
InterruptedException
-
acquireWriteLock
public ISMLocking.WriteLock acquireWriteLock(ChangeLog changeLog) throws InterruptedException
Acquires a write lock for the givenchangeLog.- Specified by:
acquireWriteLockin interfaceISMLocking- Parameters:
changeLog- the change log- Returns:
- the write lock for the given
changeLog. - Throws:
InterruptedException- if the thread is interrupted while creating the write lock.
-
-