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
...
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FineGrainedISMLocking
public FineGrainedISMLocking()
acquireReadLock
public ISMLocking.ReadLock acquireReadLock(ItemId id)
throws InterruptedException
- Acquire a read lock for the given item
id
.
- Specified by:
acquireReadLock
in interface ISMLocking
- Parameters:
id
- an item id.
- Throws:
InterruptedException
acquireWriteLock
public ISMLocking.WriteLock acquireWriteLock(ChangeLog changeLog)
throws InterruptedException
- Acquires a write lock for the given
changeLog
.
- Specified by:
acquireWriteLock
in interface ISMLocking
- 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.
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.