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 TypeMethodDescriptionvoid
close()
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:
close
in interfaceAutoCloseable
- Throws:
IllegalMonitorStateException
- if thisUnlockable
is implemented directly or indirectly by aReentrantLock
of some kind, and if that backingReentrantLock
'sunlock()
method throws this exception- See Also:
-