|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RwLock
Read-write lock interface.
Method Summary | |
---|---|
boolean |
hasReadLock()
Check if the current thread holds read lock. |
boolean |
hasReadOrWriteLock()
Check if the current thread holds read or write 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. |
Method Detail |
---|
void readLock()
void readUnlock()
boolean hasReadLock()
void writeLock()
void writeLockInterruptibly() throws InterruptedException
InterruptedException
void writeUnlock()
boolean hasWriteLock()
boolean hasReadOrWriteLock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |