Class ReleasableLock
- java.lang.Object
-
- org.elasticsearch.common.util.concurrent.ReleasableLock
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
public class ReleasableLock extends Object implements Releasable
Releasable lock used inside of Engine implementations
-
-
Constructor Summary
Constructors Constructor Description ReleasableLock(Lock lock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReleasableLockacquire()voidclose()booleanisHeldByCurrentThread()
-
-
-
Constructor Detail
-
ReleasableLock
public ReleasableLock(Lock lock)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
acquire
public ReleasableLock acquire() throws EngineException
- Throws:
EngineException
-
isHeldByCurrentThread
public boolean isHeldByCurrentThread()
-
-