Class ExclusiveReentrantLockManager
java.lang.Object
org.eclipse.rdf4j.common.concurrent.locks.ExclusiveReentrantLockManager
A simple reentrant lock that allows other threads to unlock the lock.
- Author:
- HÃ¥vard M. Ottestad
-
Constructor Summary
ConstructorDescriptionExclusiveReentrantLockManager
(boolean trackLocks) ExclusiveReentrantLockManager
(boolean trackLocks, int collectionFrequency) -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Constructor Details
-
ExclusiveReentrantLockManager
public ExclusiveReentrantLockManager() -
ExclusiveReentrantLockManager
public ExclusiveReentrantLockManager(boolean trackLocks) -
ExclusiveReentrantLockManager
public ExclusiveReentrantLockManager(boolean trackLocks, int collectionFrequency)
-
-
Method Details
-
tryExclusiveLock
-
getExclusiveLock
- Throws:
InterruptedException
-
isActiveLock
public boolean isActiveLock()
-