Class AutoCloseableLock
java.lang.Object
org.apache.drill.common.concurrent.AutoCloseableLock
- All Implemented Interfaces:
AutoCloseable
,AutoCloseables.Closeable
Simple wrapper class that allows Locks to be released via an try-with-resources block.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AutoCloseableLock
-
-
Method Details
-
open
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceAutoCloseables.Closeable
-