Package org.elasticsearch.index.engine
Class Engine.NoOpLock
java.lang.Object
org.elasticsearch.index.engine.Engine.NoOpLock
- All Implemented Interfaces:
java.util.concurrent.locks.Lock
- Enclosing class:
- Engine
protected static final class Engine.NoOpLock
extends java.lang.Object
implements java.util.concurrent.locks.Lock
A Lock implementation that always allows the lock to be acquired
-
Constructor Summary
Constructors Modifier Constructor Description protectedNoOpLock() -
Method Summary
Modifier and Type Method Description voidlock()voidlockInterruptibly()java.util.concurrent.locks.ConditionnewCondition()booleantryLock()booleantryLock(long time, java.util.concurrent.TimeUnit unit)voidunlock()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NoOpLock
protected NoOpLock()
-
-
Method Details
-
lock
public void lock()- Specified by:
lockin interfacejava.util.concurrent.locks.Lock
-
lockInterruptibly
public void lockInterruptibly() throws java.lang.InterruptedException- Specified by:
lockInterruptiblyin interfacejava.util.concurrent.locks.Lock- Throws:
java.lang.InterruptedException
-
tryLock
public boolean tryLock()- Specified by:
tryLockin interfacejava.util.concurrent.locks.Lock
-
tryLock
public boolean tryLock(long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException- Specified by:
tryLockin interfacejava.util.concurrent.locks.Lock- Throws:
java.lang.InterruptedException
-
unlock
public void unlock()- Specified by:
unlockin interfacejava.util.concurrent.locks.Lock
-
newCondition
public java.util.concurrent.locks.Condition newCondition()- Specified by:
newConditionin interfacejava.util.concurrent.locks.Lock
-