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

class AutoReadWriteLock

Makes a ReadWriteLock that can return AutoLock s and exposes #autoReadLock() and #autoWriteLock() like AutoLock#autoLock() . ReadWriteLock lock = ...; ... AutoReadWriteLock autoLock = new AutoReadWriteLock(lock); // Not locked try (AutoLock al = autoLock.autoReadLock()) { // variable required but unused // Locked ... // Not locked }
Class fields and methods
class AutoReadWriteLock
Makes a ReadWriteLock that can return AutoLock s and exposes #autoReadL...
constructor AutoReadWriteLock(lock)
constructor AutoReadWriteLock()
method autoReadLock()
method autoWriteLock()
method readLock()
method toString()
method writeLock()
Manages a new {@link ReentrantReadWriteLock}.