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 requestedConstructor 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 ReentrantReadWriteLock
public void lockInterruptibly() throws InterruptedException
IllegalLoopbackException
.
If no read locks are held, then this method delegates the call to the
internal delegate ReentrantReadWriteLock
lockInterruptibly
in interface Lock
InterruptedException
public Condition newCondition()
newCondition
in interface Lock
UnsupportedOperationException
public boolean tryLock()
IllegalLoopbackException
.
If no read locks are held, then this method delegates the call to the
internal delegate ReentrantReadWriteLock
public 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 ReentrantReadWriteLock
tryLock
in interface Lock
InterruptedException
public void unlock()
ReentrantReadWriteLock
Copyright © 2017 JBoss by Red Hat. All rights reserved.