public class

AbstractAutoClosingLock

extends Object
implements ACLock
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.concurrent.AbstractAutoClosingLock

Class Overview

Base implementation for auto-closable locks.

Guideline for implementers:

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

Summary

Fields
protected AtomicBoolean locked
Public Constructors
AbstractAutoClosingLock(SerReentrantLock lock)
Public Methods
final void close()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.util.base.AutoCloseable2
From interface java.lang.AutoCloseable

Fields

protected AtomicBoolean locked

Public Constructors

public AbstractAutoClosingLock (SerReentrantLock lock)

Public Methods

public final void close ()