Package com.helger.commons.concurrent
Class AutoLock
java.lang.Object
com.helger.commons.concurrent.AutoLock
- All Implemented Interfaces:
AutoCloseable
Small wrapper around
Lock interface to be used in a
try-with-resources statement, so that the unlock happened.- Since:
- 9.0.0
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AutoLock
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-