Package com.yahoo.concurrent.classlock
Class ClassLock
java.lang.Object
com.yahoo.concurrent.classlock.ClassLock
- All Implemented Interfaces:
AutoCloseable
An acquired lock which is released on close
- Author:
- valerijf
-
Method Summary
-
Method Details
-
close
public void close()Releases this lock- Specified by:
close
in interfaceAutoCloseable
- Throws:
IllegalArgumentException
- if this lock has already been released
-