Class EJBReadWriteLock
java.lang.Object
org.jboss.as.ejb3.component.singleton.EJBReadWriteLock
- All Implemented Interfaces:
Serializable,ReadWriteLock
An implementation of
ReadWriteLock which throws an IllegalLoopbackException
when a thread holding a read lock tries to obtain a write lock.- Version:
- $Revision: $
- Author:
- Carlo de Wolf
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassA read lock which increments/decrements the count of read locks held by the thread and delegates the locking calls to thedelegateclassAn implementation of lock which first checks the number ofEJBReadWriteLock.ReadLockheld by this thread. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EJBReadWriteLock
public EJBReadWriteLock()
-
-
Method Details
-
readLock
- Specified by:
readLockin interfaceReadWriteLock- See Also:
-
writeLock
- Specified by:
writeLockin interfaceReadWriteLock- See Also:
-