|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReadWriteLockManager
A lock manager that manages a multi-read, single-write lock. This lock manager allows multiple read locks to be active at the same time. The write lock is exclusive, meaning that no other read- or write locks may be active at the same time.
Method Summary | |
---|---|
Lock |
getReadLock()
Gets a read lock. |
Lock |
getWriteLock()
Gets an exclusive write lock. |
Lock |
tryReadLock()
Gets a read lock, if available. |
Lock |
tryWriteLock()
Gets an exclusive write lock, if available. |
Method Detail |
---|
Lock tryReadLock()
Lock getReadLock() throws java.lang.InterruptedException
java.lang.InterruptedException
- In case the thread requesting the lock was
interrupted
.Lock tryWriteLock()
Lock getWriteLock() throws java.lang.InterruptedException
java.lang.InterruptedException
- In case the thread requesting the lock was
interrupted
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |