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 void
lock()
void
lockInterruptibly()
Condition
newCondition()
boolean
tryLock()
boolean
tryLock(long time, TimeUnit unit)
void
unlock()
-
-
-
Method Detail
-
lock
public void lock()
-
lockInterruptibly
public void lockInterruptibly() throws InterruptedException
- Throws:
InterruptedException
-
tryLock
public boolean tryLock()
-
tryLock
public boolean tryLock(long time, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
unlock
public void unlock()
-
newCondition
public Condition newCondition()
-
-