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 Methods |
final
void
|
close()
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.pnfsoftware.jeb.util.base.AutoCloseable2
|
From interface
java.lang.AutoCloseable
|
Fields
protected
AtomicBoolean
locked
Public Constructors
Public Methods
public
final
void
close
()