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 ReadWriteLock
ReadWriteLock.readLock()
public Lock writeLock()
writeLock
in interface ReadWriteLock
ReadWriteLock.writeLock()
Copyright © 2016 JBoss by Red Hat. All rights reserved.