public class EJBReadWriteLock.ReadLock extends Object implements Lock, Serializable
EJBReadWriteLock.delegate
Constructor and Description |
---|
ReadLock() |
Modifier and Type | Method and Description |
---|---|
void |
lock()
Delegate the call to the internal
ReentrantReadWriteLock instance
and then increment the read lock count held by the thread |
void |
lockInterruptibly()
Delegate the call to the internal
ReentrantReadWriteLock instance
and then increment the read lock count held by the thread |
Condition |
newCondition()
No implementation provided
|
boolean |
tryLock()
Delegate the call to the internal
ReentrantReadWriteLock instance
and then on successful acquisition of lock, increment the read lock count held by the thread |
boolean |
tryLock(long time,
TimeUnit unit)
Delegate the call to the internal
ReentrantReadWriteLock instance
and then on successful acquisition of lock, increment the read lock count held by the thread |
void |
unlock()
Delegate the call to the internal
ReentrantReadWriteLock instance
and then decrement the read lock count held by the thread |
public void lock()
ReentrantReadWriteLock
instance
and then increment the read lock count held by the threadpublic void lockInterruptibly() throws InterruptedException
ReentrantReadWriteLock
instance
and then increment the read lock count held by the threadlockInterruptibly
in interface Lock
InterruptedException
public Condition newCondition()
newCondition
in interface Lock
UnsupportedOperationException
public boolean tryLock()
ReentrantReadWriteLock
instance
and then on successful acquisition of lock, increment the read lock count held by the threadpublic boolean tryLock(long time, TimeUnit unit) throws InterruptedException
ReentrantReadWriteLock
instance
and then on successful acquisition of lock, increment the read lock count held by the threadtryLock
in interface Lock
InterruptedException
public void unlock()
ReentrantReadWriteLock
instance
and then decrement the read lock count held by the threadCopyright © 2014 JBoss by Red Hat. All rights reserved.