public interface ReadWriteLockManager
| Modifier and Type | Method and Description |
|---|---|
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.
|
Lock tryReadLock()
Lock getReadLock() throws InterruptedException
InterruptedException - In case the thread requesting the lock was interrupted.Lock tryWriteLock()
Lock getWriteLock() throws InterruptedException
InterruptedException - In case the thread requesting the lock was interrupted.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.