org.apache.commons.transaction.locking.locks
Class ResourceRWLock

java.lang.Object
  extended by org.apache.commons.transaction.locking.locks.ResourceRWLock
All Implemented Interfaces:
ReadWriteLock

public class ResourceRWLock
extends Object
implements ReadWriteLock

Special version of a ReentrantReadWriteLock.


Nested Class Summary
 class ResourceRWLock.InnerLock
           
 
Constructor Summary
ResourceRWLock()
           
ResourceRWLock(String resourceName)
           
 
Method Summary
 boolean equals(Object obj)
           
 Collection<Thread> getQueuedThreads()
           
 boolean isUnacquired()
           
 org.apache.commons.transaction.locking.locks.ResourceRWLock.ReadLock readLock()
           
 void registerWaiter()
           
 String toString()
           
 void unregisterWaiter()
           
 org.apache.commons.transaction.locking.locks.ResourceRWLock.WriteLock writeLock()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceRWLock

public ResourceRWLock()

ResourceRWLock

public ResourceRWLock(String resourceName)
Method Detail

writeLock

public org.apache.commons.transaction.locking.locks.ResourceRWLock.WriteLock writeLock()
Specified by:
writeLock in interface ReadWriteLock

readLock

public org.apache.commons.transaction.locking.locks.ResourceRWLock.ReadLock readLock()
Specified by:
readLock in interface ReadWriteLock

getQueuedThreads

public Collection<Thread> getQueuedThreads()

registerWaiter

public void registerWaiter()

unregisterWaiter

public void unregisterWaiter()

isUnacquired

public boolean isUnacquired()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.