Package org.elasticsearch.index.engine
Class Engine.NoOpLock
org.elasticsearch.index.engine.Engine.NoOpLock
- All Implemented Interfaces:
- Enclosing class:
- Engine
protected static final class Engine.NoOpLock
extends
implements
A Lock implementation that always allows the lock to be acquired
-
Constructor Details
-
NoOpLock
protected NoOpLock()
-
-
Method Details
-
lock
public void lock()- Specified by:
in interface
-
lockInterruptibly
public void lockInterruptibly() throws- Specified by:
in interface
- Throws:
-
tryLock
public boolean tryLock()- Specified by:
in interface
-
tryLock
public boolean tryLock(long time, unit) throws- Specified by:
in interface
- Throws:
-
unlock
public void unlock()- Specified by:
in interface
-
newCondition
public newCondition()- Specified by:
in interface
-