Class EJBReadWriteLock
- java.lang.Object
-
- org.jboss.as.ejb3.component.singleton.EJBReadWriteLock
-
- All Implemented Interfaces:
Serializable,ReadWriteLock
public class EJBReadWriteLock extends Object implements ReadWriteLock, Serializable
An implementation ofReadWriteLockwhich throws anIllegalLoopbackExceptionwhen a thread holding a read lock tries to obtain a write lock.- Version:
- $Revision: $
- Author:
- Carlo de Wolf
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classEJBReadWriteLock.ReadLockA read lock which increments/decrements the count of read locks held by the thread and delegates the locking calls to thedelegateclassEJBReadWriteLock.WriteLockAn implementation of lock which first checks the number ofEJBReadWriteLock.ReadLockheld by this thread.
-
Constructor Summary
Constructors Constructor Description EJBReadWriteLock()
-
-
-
Method Detail
-
readLock
public Lock readLock()
- Specified by:
readLockin interfaceReadWriteLock- See Also:
ReadWriteLock.readLock()
-
writeLock
public Lock writeLock()
- Specified by:
writeLockin interfaceReadWriteLock- See Also:
ReadWriteLock.writeLock()
-
-