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
lockedto true.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
locked
-
-
Constructor Details
-
AbstractAutoClosingLock
-
-
Method Details
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceAutoCloseable2
-