public class EJBReadWriteLock extends Object implements ReadWriteLock, Serializable
ReadWriteLock which throws an IllegalLoopbackException
when a thread holding a read lock tries to obtain a write lock.| Modifier and Type | Class and Description |
|---|---|
class |
EJBReadWriteLock.ReadLock
A read lock which increments/decrements the count of
read locks held by the thread and delegates the locking
calls to the
delegate |
class |
EJBReadWriteLock.WriteLock
An implementation of lock which first checks the number of
EJBReadWriteLock.ReadLock
held by this thread. |
| Constructor and Description |
|---|
EJBReadWriteLock() |
public Lock readLock()
readLock in interface ReadWriteLockReadWriteLock.readLock()public Lock writeLock()
writeLock in interface ReadWriteLockReadWriteLock.writeLock()Copyright © 2019 JBoss by Red Hat. All rights reserved.