|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.utils.locking.ReadWriteLockManager
The Generic ReadWriteLock Manager for various resources.
Constructor Summary | |
ReadWriteLockManager()
|
Method Summary | |
void |
done(java.lang.String id)
Release the read/write lock previously placed on the specified resource. |
protected java.util.Hashtable |
getLocks()
Returns the lock table of all the resources managed by the subclass. |
void |
readLock(java.lang.String id)
Places a read lock on the specified resource. |
void |
writeLock(java.lang.String id)
Places a write lock on the specified resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReadWriteLockManager()
Method Detail |
public final void readLock(java.lang.String id) throws java.lang.InterruptedException
java.lang.InterruptedException
public final void writeLock(java.lang.String id) throws java.lang.InterruptedException
java.lang.InterruptedException
public final void done(java.lang.String id)
protected java.util.Hashtable getLocks()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |