Class AbstractAutoClosingLock
java.lang.Object
com.pnfsoftware.jeb.util.concurrent.AbstractAutoClosingLock
- All Implemented Interfaces:
AutoCloseable2
,ACLock
,AutoCloseable
Base implementation for auto-closable locks.
Guideline for implementers:
- call
super()
- acquire the lock
- set the protected field
locked
to true.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
locked
-
-
Constructor Details
-
AbstractAutoClosingLock
-
-
Method Details
-
close
public final void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceAutoCloseable2
-