Interface CloseableReentrantReadWriteLock.CloseableLock
- All Superinterfaces:
AutoCloseable
- Enclosing class:
- CloseableReentrantReadWriteLock
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface CloseableReentrantReadWriteLock.CloseableLock
extends AutoCloseable
An
AutoCloseable that releases a lock when closed. This interface does not throw any
checked exceptions from close().-
Method Summary
-
Method Details
-
close
void close()Releases the lock. UnlikeAutoCloseable.close(), this method does not throw any checked exceptions.- Specified by:
closein interfaceAutoCloseable
-