Class ExclusiveLockManager
- java.lang.Object
-
- org.eclipse.rdf4j.common.concurrent.locks.ExclusiveLockManager
-
public class ExclusiveLockManager extends Object
A simple non-reentrant lock.- Author:
- HÃ¥vard M. Ottestad
-
-
Constructor Summary
Constructors Constructor Description ExclusiveLockManager()
ExclusiveLockManager(boolean trackLocks)
ExclusiveLockManager(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()
-
-