Package org.apache.arrow.memory.util
Class AutoCloseableLock
java.lang.Object
org.apache.arrow.memory.util.AutoCloseableLock
- All Implemented Interfaces:
AutoCloseable
Simple wrapper class that allows Locks to be released via a try-with-resources block.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AutoCloseableLock
-
-
Method Details
-
open
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-