Interface Unlockable
- All Superinterfaces:
AutoCloseable
An
AutoCloseable extension whose close() method throws no checked exceptions and unlocks something
that may have been previously locked in some unspecified manner.- Author:
- Laird Nelson
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Unlocks thisUnlockable, which normally has been semantically locked already in some unspecified manner.
-
Method Details
-
close
void close()Unlocks thisUnlockable, which normally has been semantically locked already in some unspecified manner.Implementations of this method must be idempotent.
- Specified by:
closein interfaceAutoCloseable- Throws:
IllegalMonitorStateException- if thisUnlockableis implemented directly or indirectly by aReentrantLockof some kind, and if that backingReentrantLock'sunlock()method throws this exception- See Also:
-