Class ReleasableLock

java.lang.Object
org.elasticsearch.common.util.concurrent.ReleasableLock
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable, Releasable

public class ReleasableLock
extends java.lang.Object
implements Releasable
Releasable lock used inside of Engine implementations
  • Constructor Summary

    Constructors 
    Constructor Description
    ReleasableLock​(java.util.concurrent.locks.Lock lock)  
  • Method Summary

    Modifier and Type Method Description
    ReleasableLock acquire()  
    void close()  
    boolean isHeldByCurrentThread()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait