Class NonReentrantLock
java.lang.Object
org.infinispan.commons.util.concurrent.NonReentrantLock
- All Implemented Interfaces:
Lock
A simplistic non-reentrant lock that does not use ownership by thread.
-
Constructor Details
-
NonReentrantLock
public NonReentrantLock()
-
-
Method Details
-
lock
public void lock() -
lockInterruptibly
- Specified by:
lockInterruptiblyin interfaceLock- Throws:
InterruptedException
-
tryLock
public boolean tryLock() -
tryLock
- Specified by:
tryLockin interfaceLock- Throws:
InterruptedException
-
unlock
public void unlock() -
newCondition
- Specified by:
newConditionin interfaceLock
-