Architecture Diagrams for /oryxproject/oryx[edit]
Packages / Module oryx-common / com.cloudera.oryx.common.lang / AutoLock

class AutoLock

Makes a Lock into an AutoCloseable for use with try-with-resources: Lock lock = ...; ... AutoLock autoLock = new AutoLock(lock); // Not locked try (AutoLock al = autoLock.autoLock()) { // variable required but unused // Locked ... // Not locked }
Class fields and methods
class AutoLock
Makes a Lock into an AutoCloseable for use with try-with-resources: Loc...
constructor AutoLock()
constructor AutoLock(lock)
method autoLock()
method close()
method lock()
method lockInterruptibly()
method newCondition()
method toString()
method tryLock(time,unit)
method tryLock()
method unlock()
Manages a new {@link ReentrantLock}.
Unlocks the underlying {@link Lock}.