Class AbstractAutoClosingLock

java.lang.Object
com.pnfsoftware.jeb.util.concurrent.AbstractAutoClosingLock
All Implemented Interfaces:
AutoCloseable2, ACLock, AutoCloseable

public class AbstractAutoClosingLock extends Object implements ACLock
Base implementation for auto-closable locks.

Guideline for implementers:

  • call super()
  • acquire the lock
  • set the protected field locked to true.