Class ExclusiveReentrantLockManager
- java.lang.Object
-
- org.eclipse.rdf4j.common.concurrent.locks.ExclusiveReentrantLockManager
-
public class ExclusiveReentrantLockManager extends Object
A simple reentrant lock that allows other threads to unlock the lock.- Author:
- HÃ¥vard M. Ottestad
-
-
Constructor Summary
Constructors Constructor Description ExclusiveReentrantLockManager()
ExclusiveReentrantLockManager(boolean trackLocks)
ExclusiveReentrantLockManager(boolean trackLocks, int collectionFrequency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Lock
getExclusiveLock()
boolean
isActiveLock()
Lock
tryExclusiveLock()
-
-
-
Method Detail
-
tryExclusiveLock
public Lock tryExclusiveLock()
-
getExclusiveLock
public Lock getExclusiveLock() throws InterruptedException
- Throws:
InterruptedException
-
isActiveLock
public boolean isActiveLock()
-
-