public class EJBReadWriteLock.WriteLock extends Object implements Lock, Serializable
EJBReadWriteLock.ReadLock
held by this thread. If the thread already holds a EJBReadWriteLock.ReadLock, then
this implementation throws an IllegalLoopbackException when a lock
is requested| Constructor and Description |
|---|
WriteLock() |
| Modifier and Type | Method and Description |
|---|---|
void |
lock()
Ensures that the current thread doesn't hold any read locks.
|
void |
lockInterruptibly()
Ensures that the current thread doesn't hold any read locks.
|
Condition |
newCondition()
Not implemented
|
boolean |
tryLock()
Ensures that the current thread doesn't hold any read locks.
|
boolean |
tryLock(long time,
TimeUnit unit)
Ensures that the current thread doesn't hold any read locks.
|
void |
unlock()
This method delegates the call to the
internal delegate
ReentrantReadWriteLock |
public void lock()
IllegalLoopbackException.
If no read locks are held, then this method delegates the call to the
internal delegate ReentrantReadWriteLockpublic void lockInterruptibly()
throws InterruptedException
IllegalLoopbackException.
If no read locks are held, then this method delegates the call to the
internal delegate ReentrantReadWriteLocklockInterruptibly in interface LockInterruptedExceptionpublic Condition newCondition()
newCondition in interface LockUnsupportedOperationExceptionpublic boolean tryLock()
IllegalLoopbackException.
If no read locks are held, then this method delegates the call to the
internal delegate ReentrantReadWriteLockpublic boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
IllegalLoopbackException.
If no read locks are held, then this method delegates the call to the
internal delegate ReentrantReadWriteLocktryLock in interface LockInterruptedExceptionpublic void unlock()
ReentrantReadWriteLockCopyright © 2021 JBoss by Red Hat. All rights reserved.