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 ISMLocking
id
- an item id.InterruptedException
public ISMLocking.WriteLock acquireWriteLock(ChangeLog changeLog) throws InterruptedException
changeLog
.acquireWriteLock
in interface ISMLocking
changeLog
- the change logchangeLog
.InterruptedException
- if the thread is interrupted while creating
the write lock.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.