public class FineGrainedISMLocking extends Object implements ISMLocking
FineGrainedISMLocking...ISMLocking.ReadLock, ISMLocking.WriteLock| Constructor and Description |
|---|
FineGrainedISMLocking() |
| Modifier and Type | Method and Description |
|---|---|
ISMLocking.ReadLock |
acquireReadLock(ItemId id)
Acquire a read lock for the given item
id. |
ISMLocking.WriteLock |
acquireWriteLock(ChangeLog changeLog)
Acquires a write lock for the given
changeLog. |
public ISMLocking.ReadLock acquireReadLock(ItemId id) throws InterruptedException
id.acquireReadLock in interface ISMLockingid - an item id.InterruptedExceptionpublic ISMLocking.WriteLock acquireWriteLock(ChangeLog changeLog) throws InterruptedException
changeLog.acquireWriteLock in interface ISMLockingchangeLog - the change logchangeLog.InterruptedException - if the thread is interrupted while creating
the write lock.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.