public interface RwLock
| Modifier and Type | Method and Description | 
|---|---|
| boolean | hasReadLock()Check if the current thread holds read lock. | 
| boolean | hasWriteLock()Check if the current thread holds write lock. | 
| void | readLock()Acquire read lock. | 
| void | readUnlock()Release read lock. | 
| void | writeLock()Acquire write lock. | 
| void | writeLockInterruptibly()Acquire write lock, unless interrupted while waiting | 
| void | writeUnlock()Release write lock. | 
void readLock()
void readUnlock()
boolean hasReadLock()
void writeLock()
void writeLockInterruptibly()
                            throws InterruptedException
InterruptedExceptionvoid writeUnlock()
boolean hasWriteLock()
Copyright © 2017 Apache Software Foundation. All Rights Reserved.