Class NonReentrantLock
- java.lang.Object
-
- org.infinispan.commons.util.concurrent.NonReentrantLock
-
-
Constructor Summary
Constructors Constructor Description NonReentrantLock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlock()voidlockInterruptibly()ConditionnewCondition()booleantryLock()booleantryLock(long time, TimeUnit unit)voidunlock()
-
-
-
Method Detail
-
lockInterruptibly
public void lockInterruptibly() throws InterruptedException- Specified by:
lockInterruptiblyin interfaceLock- Throws:
InterruptedException
-
tryLock
public boolean tryLock(long time, TimeUnit unit) throws InterruptedException- Specified by:
tryLockin interfaceLock- Throws:
InterruptedException
-
newCondition
public Condition newCondition()
- Specified by:
newConditionin interfaceLock
-
-