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:
lockInterruptibly
in interfaceLock
- Throws:
InterruptedException
-
tryLock
public boolean tryLock() -
tryLock
- Specified by:
tryLock
in interfaceLock
- Throws:
InterruptedException
-
unlock
public void unlock() -
newCondition
- Specified by:
newCondition
in interfaceLock
-